mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
- include inc.ClassAccess.php
- remove adminID, user who are admins are now identified by the isAdmin() function
This commit is contained in:
parent
35b663eb74
commit
4291f8c7a2
|
@ -17,6 +17,7 @@
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
require_once("inc.AccessUtils.php");
|
require_once("inc.AccessUtils.php");
|
||||||
|
require_once("inc.ClassAccess.php");
|
||||||
require_once("inc.ClassFolder.php");
|
require_once("inc.ClassFolder.php");
|
||||||
require_once("inc.ClassDocument.php");
|
require_once("inc.ClassDocument.php");
|
||||||
require_once("inc.ClassGroup.php");
|
require_once("inc.ClassGroup.php");
|
||||||
|
@ -66,13 +67,6 @@ class LetoDMS_DMS {
|
||||||
*/
|
*/
|
||||||
public $guestID;
|
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
|
* @var integer $rootFolderID ID of root folder
|
||||||
* @access public
|
* @access public
|
||||||
|
@ -140,7 +134,6 @@ class LetoDMS_DMS {
|
||||||
$this->contentDir = $contentDir;
|
$this->contentDir = $contentDir;
|
||||||
$this->contentOffsetDir = $contentOffsetDir;
|
$this->contentOffsetDir = $contentOffsetDir;
|
||||||
$this->rootFolderID = 1;
|
$this->rootFolderID = 1;
|
||||||
$this->adminID = 1;
|
|
||||||
$this->guestID = 2;
|
$this->guestID = 2;
|
||||||
$this->enableAdminRevApp = false;
|
$this->enableAdminRevApp = false;
|
||||||
$this->enableConverting = false;
|
$this->enableConverting = false;
|
||||||
|
@ -155,10 +148,6 @@ class LetoDMS_DMS {
|
||||||
$this->rootFolderID = $id;
|
$this->rootFolderID = $id;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function setAdminID($id) { /* {{{ */
|
|
||||||
$this->adminID = $id;
|
|
||||||
} /* }}} */
|
|
||||||
|
|
||||||
function setGuestID($id) { /* {{{ */
|
function setGuestID($id) { /* {{{ */
|
||||||
$this->guestID = $id;
|
$this->guestID = $id;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
@ -197,7 +186,7 @@ class LetoDMS_DMS {
|
||||||
/**
|
/**
|
||||||
* Set the logged in user
|
* 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.
|
* be used to tell the dms who is currently logged in.
|
||||||
*
|
*
|
||||||
* @param object $user
|
* @param object $user
|
||||||
|
|
Loading…
Reference in New Issue
Block a user