-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
BUGFIX: show workspace owner/title in media usage tab #5182
Changes from 1 commit
0e15553
3f5f41c
421f7a8
35b3be1
1d034a8
bbeb8df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,10 @@ Neos: | |
# By default, enable the option to create redirects for replaced asset resources | ||
createAssetRedirectsOption: | ||
enable: true | ||
# By default, disable showing the workspace owner/title in media browser usage tab | ||
showWorkspaceOwnerOrName: | ||
enable: false | ||
privilegedRoles: ['Neos.Neos:Administrator'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason why you didn't introduce an actual privilege instead of defining a privilege via the settings? You could introduce a new privilege and integrators can add it to whichever role they want. This way you only need to check if the new privilege is granted and simplify the code a bit. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point, haven't thought about that one. I've implemented the privilege but im stuck trying to check the role without looping over them. Or should i just loop over the user (parent) roles and match them with the new privilege role. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can either use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks worked like a charm! |
||
|
||
Flow: | ||
security: | ||
|
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.
IMO we don't need this switch. If someone doesn't want the feature they can disable or remove the privilege.