/usr/share/php/LetoDMS/Core/inc.ClassAccess.php is in php-letodms-core 3.3.11-3build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | <?php
/**
* Implementation of user and group access object
*
* @category DMS
* @package LetoDMS_Core
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe,
* 2010 Uwe Steinmann
* @version Release: 3.3.11
*/
/**
* Class to represent a user access right.
* This class cannot be used to modify access rights.
*
* @category DMS
* @package LetoDMS_Core
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe,
* 2010 Uwe Steinmann
* @version Release: 3.3.11
*/
class LetoDMS_Core_UserAccess { /* {{{ */
var $_user;
var $_mode;
function LetoDMS_Core_UserAccess($user, $mode) {
$this->_user = $user;
$this->_mode = $mode;
}
function getUserID() { return $this->_user->getID(); }
function getMode() { return $this->_mode; }
function isAdmin() {
return ($this->_mode == LetoDMS_Core_User::role_admin);
}
function getUser() {
return $this->_user;
}
} /* }}} */
/**
* Class to represent a group access right.
* This class cannot be used to modify access rights.
*
* @category DMS
* @package LetoDMS_Core
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, 2010 Uwe Steinmann
* @version Release: 3.3.11
*/
class LetoDMS_Core_GroupAccess { /* {{{ */
var $_group;
var $_mode;
function LetoDMS_Core_GroupAccess($group, $mode) {
$this->_group = $group;
$this->_mode = $mode;
}
function getGroupID() { return $this->_group->getID(); }
function getMode() { return $this->_mode; }
function getGroup() {
return $this->_group;
}
} /* }}} */
?>
|