-
Notifications
You must be signed in to change notification settings - Fork 824
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
NEW Form sudo mode #11582
NEW Form sudo mode #11582
Conversation
6750198
to
a41f2a4
Compare
426ea25
to
d9b62d4
Compare
|
||
// Activate sudo mode on login so the user doesn't have to reauthenticate for sudo | ||
// actions until the sudo mode timeout expires | ||
$service = Injector::inst()->get(SudoModeServiceInterface::class); |
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.
Agreed offline that sudo mode should NOT be automatically activated when you log in
beb0526
to
40fa4ee
Compare
ae51b7f
to
4bab0a8
Compare
4bab0a8
to
eb23b5e
Compare
d14d40b
to
2860c61
Compare
d218c67
to
30480c3
Compare
30480c3
to
eae81b5
Compare
#11582 (comment) still not addressed |
eae81b5
to
08f19c7
Compare
08f19c7
to
671b1e1
Compare
if ($sudoModeTransformation) { | ||
// Modify the GridFieldViewButton on any GridFields so that it doesn't suffix the view URL with 'view' | ||
// This allows us to gracefully reload a form in readonly mode when sudo mode is activated | ||
if ($item instanceof GridFieldViewButton) { |
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'd normally ask for this to be combined into a single conditional statement but I think we're both tired of this review cycle, and the change is only a very minor code style change, so will leave as is.
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.
LGTM, will give one last look locally.
Issue silverstripe/silverstripe-admin#1898