-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Permissions Dublicate - Fix #22618
Comments
Can you show reproduction steps for how to get into the state of having duplicated permissions in the first place? |
See the isse #22613 by using the REST API. The issue was found since a script ran and added the same role, collection and action twice. I think it would be better to close the issue here and mention it in the original #21965 as of duplicate. This way two permissions are created resulting in the soft lock state, as mentioned in the issue referenced. const response = await fetch(`http://127.0.0.1/api/permissions`, {
agent: httpsAgent,
method: 'POST',
headers: {
"Cookie": headers.get('cookie'),
'Content-Type': 'application/json',
},
body: JSON.stringify({
role: permission.role,
collection: permission.collection,
action: permission.action,
fields: permission.fields,
permissions: permission.permissions,
validation: permission.validation,
}),
}); |
Closing this in favor of #21965 the optimal solution here would be to prevent duplicate permissions instead of deduplicating them after the fact (that should be done as a one time fix) |
Describe the Improvement
So based on this issue: #22613
When having dublicates of permissions no ID is shown in the frontend, leaving users in a "soft-lock".
Tiny tweak:
The text was updated successfully, but these errors were encountered: