From 4d5a55d0d868f4d0eccc867581635a1da6371be1 Mon Sep 17 00:00:00 2001 From: Kayou Date: Fri, 1 Mar 2019 02:15:21 +0100 Subject: [PATCH] add possible permissions --- conf/class.auth.ldap.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/conf/class.auth.ldap.php b/conf/class.auth.ldap.php index e7afbf9..681af23 100644 --- a/conf/class.auth.ldap.php +++ b/conf/class.auth.ldap.php @@ -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(); }