mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-16 14:33:09 +00:00
Minor fix. Replace getParentCommunity() call with parent variable.
This commit is contained in:
@@ -1128,7 +1128,7 @@ public class Community extends DSpaceObject
|
|||||||
// MUST have either REMOVE permissions on parent community (if exists)
|
// MUST have either REMOVE permissions on parent community (if exists)
|
||||||
// OR have DELETE permissions on current community
|
// OR have DELETE permissions on current community
|
||||||
if (parent!= null && !AuthorizeManager.authorizeActionBoolean(ourContext,
|
if (parent!= null && !AuthorizeManager.authorizeActionBoolean(ourContext,
|
||||||
getParentCommunity(), Constants.REMOVE))
|
parent, Constants.REMOVE))
|
||||||
{
|
{
|
||||||
// If we don't have Parent Community REMOVE permissions, then
|
// If we don't have Parent Community REMOVE permissions, then
|
||||||
// we MUST at least have current Community DELETE permissions
|
// we MUST at least have current Community DELETE permissions
|
||||||
|
Reference in New Issue
Block a user