mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-02 06:57:40 +00:00
add var noReadForStatus and method getLoggedInUser()
This commit is contained in:
parent
3912cbb577
commit
031887de0a
|
@ -147,6 +147,13 @@ class SeedDMS_Core_DMS {
|
|||
*/
|
||||
public $viewOnlineFileTypes;
|
||||
|
||||
/**
|
||||
* @var array $noReadForStatus list of status without read right
|
||||
* online.
|
||||
* @access public
|
||||
*/
|
||||
public $noReadForStatus;
|
||||
|
||||
/**
|
||||
* @var string $version version of pear package
|
||||
* @access public
|
||||
|
@ -354,6 +361,7 @@ class SeedDMS_Core_DMS {
|
|||
$this->forceRename = false;
|
||||
$this->enableConverting = false;
|
||||
$this->convertFileTypes = array();
|
||||
$this->noReadForStatus = array();
|
||||
$this->classnames = array();
|
||||
$this->classnames['folder'] = 'SeedDMS_Core_Folder';
|
||||
$this->classnames['document'] = 'SeedDMS_Core_Document';
|
||||
|
@ -542,6 +550,19 @@ class SeedDMS_Core_DMS {
|
|||
$this->user = $user;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Get the logged in user
|
||||
*
|
||||
* If user authentication was done externally, this function can
|
||||
* be used to tell the dms who is currently logged in.
|
||||
*
|
||||
* @return object $user
|
||||
*
|
||||
*/
|
||||
function getLoggedInUser() { /* {{{ */
|
||||
return $this->user;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Return a document by its id
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user