Location: PHPKode > projects > Content*Builder > contentbuilder/lib/permission/perm.gn.class.php
<?php
/*
* Column Optionen
*/
define("GN_RIGHT_ADMIN",         1 << 0);
define("GN_RIGHT_MOD_ALLPLANS",  1 << 1);
define("GN_RIGHT_MOD_OWNPLANS",  1 << 2);
define("GN_RIGHT_VIEW_ALLPLANS", 1 << 3);
	
class CB_permission_gn extends CB_permission {
	var $cbPerms = 0;
	var $allUserPerms = 0;
	
	/**
	 * CB_permission_column::CB_permission_column()
	 * 
	 * @param boolean $optionArr
	 * @return 
	 **/
	function CB_permission_column($optionArr = false) {
		parent::CB_permission($optionArr);
		
		$this->setType("gnRights");
		$this->getPermissionList();
		
		$this->cbPerms      = $optionArr['cbPerms'];
	}
	
	/**
	 * CB_permission_column::checkAdmin()
	 * 
	 * @param $rights
	 * @param $_perms
	 * @return 
	 **/
	function checkAdmin($rights, $perms) {
		if((ADMIN & $perms) || (COL_MNG & $perms)) {
			/*
			* ersten 16 Bits auf 1 setzen, Admin darf immer alles
			*/
			$rights = 65535;
		}
		return $rights;
	}
}
?>
Return current item: Content*Builder