mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 06:53:09 +00:00
took out all isPublic column references
git-svn-id: http://scm.dspace.org/svn/repo/trunk@406 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -185,7 +185,7 @@ public class AuthorizeManager
|
||||
{
|
||||
// if public flag is set, action is authorize
|
||||
// for everyone (even anonymous use)
|
||||
if( rp.isPublic() ) { return true; }
|
||||
//if( rp.isPublic() ) { return true; }
|
||||
|
||||
if( (rp.getEPersonID() != -1)
|
||||
&&(rp.getEPersonID() == userid) )
|
||||
|
@@ -1,9 +1,7 @@
|
||||
/*
|
||||
* ResourcePolicy
|
||||
*
|
||||
* Version: $Revision$
|
||||
*
|
||||
* Date: $Date$
|
||||
* $Id$
|
||||
*
|
||||
* Copyright (c) 2001, Hewlett-Packard Company and Massachusetts
|
||||
* Institute of Technology. All rights reserved.
|
||||
@@ -222,30 +220,6 @@ public class ResourcePolicy
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* is this action public? open to all?
|
||||
* even anonymous use?
|
||||
*
|
||||
* @return true if action is authorized to all
|
||||
*/
|
||||
public boolean isPublic()
|
||||
{
|
||||
return myRow.getBooleanColumn("is_public");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* modify public flag
|
||||
*
|
||||
* @param true if authorized to all, false if not
|
||||
* if true, overrides others (epeople, groups)
|
||||
*/
|
||||
public void setPublic( boolean isPublic )
|
||||
{
|
||||
myRow.setColumn("is_public", isPublic);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* get EPersonID, or -1 if EPerson not set
|
||||
*/
|
||||
|
Reference in New Issue
Block a user