Changeset 7211
- Timestamp:
- Oct 19, 2016, 2:08:22 PM (6 years ago)
- Location:
- trunk/src/core/net/sf/basedb/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/AnnotationSet.java
r7205 r7211 386 386 /** 387 387 READ permission is granted to all users. CREATE, WRITE and DELETE permissions are granted 388 if the logged in user has WRITE permission on the associated item.388 if the logged in user has RESTRICTED_WRITE permission on the associated item. 389 389 */ 390 390 @Override … … 399 399 catch (PermissionDeniedException ex) 400 400 {} 401 if (item != null && item.hasPermission(Permission. WRITE))401 if (item != null && item.hasPermission(Permission.RESTRICTED_WRITE)) 402 402 { 403 403 granted |= Permission.grant(Permission.CREATE, Permission.READ, Permission.WRITE, Permission.DELETE); -
trunk/src/core/net/sf/basedb/core/Permission.java
r6881 r7211 73 73 This permission allows a user to use/link to an item. 74 74 */ 75 USE(1+2, 2+ 4+8+16+32, "use"),75 USE(1+2, 2+8+16+32, "use"), 76 76 77 77 /** 78 78 This permission allows a user to update some information about an item. 79 79 */ 80 RESTRICTED_WRITE(1+ 2+4, 4+8+16+32+64, "restricted write"),80 RESTRICTED_WRITE(1+4, 4+8+16+32+64, "restricted write"), 81 81 82 82 /** -
trunk/src/core/net/sf/basedb/core/User.java
r7082 r7211 473 473 if (getSessionControl().getLoggedInUserId() == getId()) 474 474 { 475 granted |= Permission.grant(isMultiuserAccount() ? Permission.READ : Permission.RESTRICTED_WRITE); 475 if (isMultiuserAccount()) 476 { 477 granted |= Permission.grant(Permission.READ); 478 } 479 else 480 { 481 granted |= Permission.grant(Permission.USE, Permission.RESTRICTED_WRITE); 482 } 476 483 } 477 484 if (getSessionControl().isFriendOf(this))
Note: See TracChangeset
for help on using the changeset viewer.