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:
parent
c44a716738
commit
b839e82599
2 changed files with 30 additions and 44 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
|
Loading…
Reference in a new issue