mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 04:53:16 +00:00
Applying "Community Admin XMLUI: Delegated Admins Patch" (DS-228). This adds delegated Admin capabilities and specifically a Community Administrator role. See Jira issue DS-228 for more specific details, including documentation on the permissions of a System Admin vs. Community Admin vs. Collection Admin. [WARNING:] This patch adds a database_schema_15-16.sql (as it requires a new "admin" column on the 'collection' table). This patch also currently only fully works for the XMLUI (but should not break anything with JSPUI) - Andrea Bollini is working on porting it over to JSPUI.
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@3980 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -1709,7 +1709,7 @@ public class Item extends DSpaceObject
|
||||
// Check permission. User either has to have REMOVE on owning collection
|
||||
// or be COLLECTION_EDITOR of owning collection
|
||||
if (AuthorizeManager.authorizeActionBoolean(ourContext,
|
||||
getOwningCollection(), Constants.COLLECTION_ADMIN)
|
||||
getOwningCollection(), Constants.ADMIN)
|
||||
|| AuthorizeManager.authorizeActionBoolean(ourContext,
|
||||
getOwningCollection(), Constants.REMOVE))
|
||||
{
|
||||
@@ -2247,7 +2247,7 @@ public class Item extends DSpaceObject
|
||||
|
||||
// is this person an COLLECTION_EDITOR for the owning collection?
|
||||
if (AuthorizeManager.authorizeActionBoolean(ourContext,
|
||||
getOwningCollection(), Constants.COLLECTION_ADMIN))
|
||||
getOwningCollection(), Constants.ADMIN))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user