mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
Add delete permission to admin.
This commit is contained in:
parent
f961ae578c
commit
2b8972a35a
@ -37,9 +37,9 @@ public abstract class BaseSecurityAdvice {
|
|||||||
boolean isAllowed;
|
boolean isAllowed;
|
||||||
|
|
||||||
if (argument instanceof Mindmap) {
|
if (argument instanceof Mindmap) {
|
||||||
isAllowed = isAllowed(user, (Mindmap) argument);
|
isAllowed = isAllowed(user, (Mindmap) argument) || mindmapService.isAdmin(user);
|
||||||
} else if (argument instanceof Integer) {
|
} else if (argument instanceof Integer) {
|
||||||
isAllowed = isAllowed(user, ((Integer) argument));
|
isAllowed = isAllowed(user, ((Integer) argument)) || mindmapService.isAdmin(user);
|
||||||
} else if (argument instanceof Collaborator) {
|
} else if (argument instanceof Collaborator) {
|
||||||
// Read operation find on the user are allowed ...
|
// Read operation find on the user are allowed ...
|
||||||
isAllowed = user.identityEquality((Collaborator) argument) || mindmapService.isAdmin(user);
|
isAllowed = user.identityEquality((Collaborator) argument) || mindmapService.isAdmin(user);
|
||||||
|
Loading…
Reference in New Issue
Block a user