From 4291f8c7a2bcc02dd4bd3ae2aee82c02ffbdc4ff Mon Sep 17 00:00:00 2001 From: steinm Date: Tue, 23 Nov 2010 14:56:25 +0000 Subject: [PATCH] - include inc.ClassAccess.php - remove adminID, user who are admins are now identified by the isAdmin() function --- inc/inc.ClassDMS.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/inc/inc.ClassDMS.php b/inc/inc.ClassDMS.php index 52d63e9d1..c471a9376 100644 --- a/inc/inc.ClassDMS.php +++ b/inc/inc.ClassDMS.php @@ -17,6 +17,7 @@ // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. require_once("inc.AccessUtils.php"); +require_once("inc.ClassAccess.php"); require_once("inc.ClassFolder.php"); require_once("inc.ClassDocument.php"); require_once("inc.ClassGroup.php"); @@ -66,13 +67,6 @@ class LetoDMS_DMS { */ public $guestID; - /** - * @var integer $adminID ID of user treated as an administrator with full - * access rights - * @access public - */ - public $adminID; - /** * @var integer $rootFolderID ID of root folder * @access public @@ -140,7 +134,6 @@ class LetoDMS_DMS { $this->contentDir = $contentDir; $this->contentOffsetDir = $contentOffsetDir; $this->rootFolderID = 1; - $this->adminID = 1; $this->guestID = 2; $this->enableAdminRevApp = false; $this->enableConverting = false; @@ -155,10 +148,6 @@ class LetoDMS_DMS { $this->rootFolderID = $id; } /* }}} */ - function setAdminID($id) { /* {{{ */ - $this->adminID = $id; - } /* }}} */ - function setGuestID($id) { /* {{{ */ $this->guestID = $id; } /* }}} */ @@ -197,7 +186,7 @@ class LetoDMS_DMS { /** * Set the logged in user * - * If user authentication was externally done, this function can + * If user authentication was done externally, this function can * be used to tell the dms who is currently logged in. * * @param object $user