Revision 9999
Added by Jing Tao about 8 years ago
src/edu/ucsb/nceas/metacat/PermissionController.java | ||
---|---|---|
155 | 155 |
//isOwner = D1NodeService.userHasPermission(userSession, pid, Permission.CHANGE_PERMISSION); |
156 | 156 |
SystemMetadata sysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(pid); |
157 | 157 |
isOwner = (sysMeta.getRightsHolder().equals(subject)); |
158 |
if(!isOwner) { |
|
159 |
isOwner = D1NodeService.expandRightsHolder(sysMeta.getRightsHolder(), subject); |
|
160 |
} |
|
158 | 161 |
} catch (Exception e) { |
159 | 162 |
logMetacat.warn("Error checking for DataONE permissions: " + e.getMessage(), e); |
160 | 163 |
isOwner = false; |
Also available in: Unified diff
Expand the rights holder if it is a group.