-
Notifications
You must be signed in to change notification settings - Fork 58
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
"Has same role as creator" permission settings are not applied #330
Comments
@manu7823 what you're describing is more like a "virtual tenancy" so single user / role can have and edit dedicated navigation. Operating on the same navigation structure and showing items per roles won't be possible because of duplicates which may happen. It's a custom solution in my opinion and honestly we did something like that based on Strapi + Navigation plugin for our client by extending Navigation Collection with I'm worried that your case is too custom to make it part of common codebase unfortunately. Anyway keep your eyes open, during the Strapi Conf such use case might be presented ;) |
@cyp3rius that's exactly what I try to achieve! Thank you for the hint according the Strapi Conf :) Is there any way you would share the code you wrote for your client with me? |
I might not share the codebase as that's a business value of a client but discuss and showcase the idea ;) |
By now, this issue raises the problem that someone without permission, who should be able to edit navigation, could see other entity titles in edit mode inside navigation. That's a lack of business policies somehow. So, it's not usable if the application needs the combination of a role that can edit navigation but should only be able to have information about entities within its own role or things created on their own. This makes the library some kind of backdoor and not usable in such cases... :( [Edit[ |
Problem
Restricting "Read" and "Update" permissions to "Has same role as creator" doesn't work.
Steps to reproduce
Has same role as creator
permissions for the navigation pluginread
andupdate
operationsSetup
"dependencies": {
"@strapi/plugin-i18n": "~4.10.1",
"@strapi/plugin-users-permissions": "~4.10.1",
"@strapi/strapi": "~4.10.1",
"better-sqlite3": "^8.0.1",
"mysql": "^2.18.1",
"strapi-plugin-navigation": "^2.2.8"
}
The text was updated successfully, but these errors were encountered: