1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-31 19:30:40 +02:00

Version 1.3.8: ACL-Implementation

This commit is contained in:
trendschau
2020-07-04 08:06:18 +02:00
parent 2965a068d8
commit 74ecf7457e
28 changed files with 537 additions and 154 deletions

View File

@@ -78,7 +78,7 @@ class Fields
}
}
elseif($field->getType() == "checkbox")
{
{
# checkboxes need a special treatment, because field does not exist in settings if unchecked by user
if(isset($userSettings[$objectType][$objectName][$fieldName]))
{

View File

@@ -29,6 +29,13 @@ class User extends WriteYaml
$user = $this->getYaml('settings/users', $username . '.yaml');
return $user;
}
public function getSecureUser($username)
{
$user = $this->getYaml('settings/users', $username . '.yaml');
unset($user['password']);
return $user;
}
public function createUser($params)
{
@@ -91,11 +98,13 @@ class User extends WriteYaml
}
}
/* replaced by ACL
public function getUserroles()
{
return array('administrator', 'editor');
}
*/
public function login($username)
{
$user = $this->getUser($username);