cancel
Showing results for 
Search instead for 
Did you mean: 

getPermissions in PermissionService

dilipl
Champ in-the-making
Champ in-the-making
I use Alfresco Community edition 3.4c

I have a user (user1) that belongs to (is a child of) group (group1). I have a custom permission (perm1) assigned to a node (node1) for group1. So essentially

Node1 has perm1 assigned to group1 on it

When I do permissionservice.getPermissions(node1), for any user, I always get "ALLOWED" even for users who do not belong to group1? I am not sure if this is a bug!!

I was hoping, all users who belong to group1 would come back with ALLOWED and the others would be DENIED. Is athat not how this is supposed to work? If not, how do I get all the "ALLOWED" permissions for a user, by virtue of the group they belong too?

Thank you
2 REPLIES 2

andy
Champ on-the-rise
Champ on-the-rise
Hi

The method to which you refer reports what the current use can do.

Please add all the permissions from any node from which node1 inherits permissions.
Exactly who makes the call to this method and how are they authenticated?
Post the results of the call.

Do not forget inherited permissions, owner permissions, admin permissions.

Andy

dilipl
Champ in-the-making
Champ in-the-making
I figured it out. The permissions weren't defined correctly. Once I fixed them, I was good