1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dotclear2_ynh.git synced 2024-09-03 18:26:29 +02:00

Add info in the config panel

This commit is contained in:
Kay0u 2022-01-10 11:18:31 +01:00
parent c44a716738
commit b839e82599
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
2 changed files with 30 additions and 44 deletions

View file

@ -70,7 +70,6 @@ class ldapDcAuth extends dcAuth
$cur->user_tz = 'Europe/Paris'; # Can change this, PR are welcome $cur->user_tz = 'Europe/Paris'; # Can change this, PR are welcome
$cur->user_default_blog = 'default'; # Can change this, PR are welcome $cur->user_default_blog = 'default'; # Can change this, PR are welcome
$this->sudo(array($this->core,'addUser'), $cur); $this->sudo(array($this->core,'addUser'), $cur);
}
# Possible roles: # Possible roles:
# admin "administrator" # admin "administrator"
# contentadmin "manage all entries and comments" # contentadmin "manage all entries and comments"
@ -102,6 +101,7 @@ class ldapDcAuth extends dcAuth
} }
} }
$this->sudo(array($this->core, 'setUserBlogPermissions'), $user_id, 'default', $set_perms, true); $this->sudo(array($this->core, 'setUserBlogPermissions'), $user_id, 'default', $set_perms, true);
}
$this->con->commit(); $this->con->commit();
} }

View file

@ -13,6 +13,7 @@ name = "Dotclear2 configuration"
[ynh_users] [ynh_users]
name = "Yunohost users" name = "Yunohost users"
help = "These permissions apply to the first connection of the user, the super user can change them in dotclear."
[ynh_users.main_permission] [ynh_users.main_permission]
name = "Permissions for YunoHost users" name = "Permissions for YunoHost users"
@ -102,18 +103,3 @@ name = "Yunohost users"
yes = "true" yes = "true"
no = "false" no = "false"
bind = "'blogroll':__FINALPATH__/inc/class.auth.ldap.php" bind = "'blogroll':__FINALPATH__/inc/class.auth.ldap.php"
# admin "administrator"
# contentadmin "manage all entries and comments"
# usage "manage their own entries and comments"
# publish "publish entries and comments"
# delete "delete entries and comments"
# categories "manage categories"
# media_admin "manage all media items"
# media "manage their own media items"
# pages "manage pages"
# blogroll "manage blogroll"