-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Allow injecting the user temporarily for direct editing #44295
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Julius Härtl <[email protected]>
juliusknorr
force-pushed
the
fix/direct-edit-incognito
branch
from
March 19, 2024 10:30
7a6ee18
to
e6331a7
Compare
juliusknorr
force-pushed
the
fix/direct-edit-incognito
branch
from
March 19, 2024 10:35
e6331a7
to
7d65d93
Compare
juliusknorr
requested review from
ChristophWurst,
blizzz,
mejo-,
a team,
ArtificialOwl,
artonge and
nfebe
and removed request for
a team
March 19, 2024 10:36
juliusknorr
changed the title
fix: Do not use incognito mode for direct editing
Allow injecting the user temporarily for direct editing
Mar 19, 2024
nfebe
reviewed
Mar 19, 2024
nfebe
approved these changes
Mar 19, 2024
juliusknorr
force-pushed
the
fix/direct-edit-incognito
branch
2 times, most recently
from
March 19, 2024 12:41
4131f98
to
07691d3
Compare
Signed-off-by: Julius Härtl <[email protected]>
juliusknorr
force-pushed
the
fix/direct-edit-incognito
branch
from
March 19, 2024 12:48
07691d3
to
e330efe
Compare
blizzz
approved these changes
Mar 21, 2024
Merged
4 tasks
@@ -338,7 +339,7 @@ public static function isAdminUser($uid) { | |||
* @return string|false uid or false | |||
*/ | |||
public static function getUser() { | |||
$uid = \OC::$server->getSession() ? \OC::$server->getSession()->get('user_id') : null; | |||
$uid = Server::get(IUserSession::class)->getUser()?->getUID(); |
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.
This breaks logging with debug when ldap is enabled:
#44400
/backport to stable29 |
/backport to stable28 |
/backport to stable27 |
3 tasks
This was referenced Jul 22, 2024
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Groupfolders
Fix ONLYOFFICE/onlyoffice-nextcloud#900 with ONLYOFFICE/onlyoffice-nextcloud#967