1
0
Fork 0
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:
Kayou 2019-03-01 02:15:21 +01:00
parent f751d455cd
commit 4d5a55d0d8
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126

View file

@ -60,6 +60,16 @@ class myDcAuth extends dcAuth
$cur->user_tz = 'Europe/Paris'; $cur->user_tz = 'Europe/Paris';
$cur->user_default_blog = 'default'; $cur->user_default_blog = 'default';
$this->sudo(array($this->core,'addUser'),$cur); $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->sudo(array($this->core,'setUserBlogPermissions'),$user_id,'default',array('admin'=>true));
$this->con->commit(); $this->con->commit();
} }