-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset attachment folder when it cannot be created #3794
Reset attachment folder when it cannot be created #3794
Conversation
Signed-off-by: Joas Schilling <[email protected]>
cc @Dubidubiduu |
/backport to stable19 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand the code correctly, it should fix the bug. 👍
But didn't test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I can share an already uploaded picture. But upload a new one just into the chat doesn't work for me.
Yeah because you dont have any quota you can of course not upload files |
@Dubidubiduu this will be further handled in #3430 |
@@ -96,9 +92,16 @@ protected function publishInitialStateForUser(IUser $user, IRootFolder $rootFold | |||
$userFolder->newFolder($attachmentFolder); | |||
} | |||
} catch (NotPermittedException $e) { | |||
$attachmentFolder = '/'; | |||
$this->serverConfig->setUserValue($user->getUID(), 'spreed', 'attachment_folder', '/'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickvergessen is there a way to do this via occ?
I would think about some command like:
occ config:system:set spreed attachment_folder --value="/" --user="exampleuser"
or
occ config:app:set spreed attachment_folder --value="/" --user="exampleuser"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, it is not needed here, since it will work now, but I would like to use it via cli to set it automatically to another value for my users...
Fix #3590