mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
add possible permissions
This commit is contained in:
parent
f751d455cd
commit
4d5a55d0d8
1 changed files with 10 additions and 0 deletions
|
@ -60,6 +60,16 @@ class myDcAuth extends dcAuth
|
|||
$cur->user_tz = 'Europe/Paris';
|
||||
$cur->user_default_blog = 'default';
|
||||
$this->sudo(array($this->core,'addUser'),$cur);
|
||||
#admin "administrator"
|
||||
#usage "manage their own entries and comments"
|
||||
#publish "publish entries and comments"
|
||||
#delete "delete entries and comments"
|
||||
#contentadmin "manage all entries and comments"
|
||||
#categories "manage categories"
|
||||
#media "manage their own media items"
|
||||
#media_admin "manage all media items"
|
||||
#pages "manage pages"
|
||||
#blogroll "manage blogroll"
|
||||
$this->sudo(array($this->core,'setUserBlogPermissions'),$user_id,'default',array('admin'=>true));
|
||||
$this->con->commit();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue