Skip to Content
0
Mar 26, 2007 at 09:16 AM

Owners of folders - Condition failing

16 Views

Hi All,

I am checking the ownership permissions of a resource by using,

 
  sm = resourceObj1.getRepositoryManager().getSecurityManager(resourceObj1);
			 if (sm != null && sm instanceof IAclSecurityManager) {
				 asm = (IAclSecurityManager) sm;
				 ram = asm.getAclManager();
				 ra = ram.getAcl(resourceObj1);
				if(ra.isOwner(ep5User)){
					// do smething
				}

The current condition validates to true only if the user name is explicitly in the folder permission, but it fails when the user belongs to a group which is marked as the owner of the folder.

Why its not considering the group permission? Where is the problem?

Please help.

Regards,

Sandip