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

admin panel allowed for the admin

This commit is contained in:
Kay0u 2019-11-19 17:38:33 +09:00
parent 331a49e1a3
commit 493dd02b0b
No known key found for this signature in database
GPG key ID: 7FF262C033518333
2 changed files with 3 additions and 5 deletions

View file

@ -171,9 +171,7 @@ if [ $is_public -eq 0 ]; then
ynh_permission_update --permission "main" --remove "visitors" --add "all_users" ynh_permission_update --permission "main" --remove "visitors" --add "all_users"
fi fi
ynh_permission_create --permission "admin" ynh_permission_create --permission "admin" --url "/admin" --allowed $admin
ynh_permission_update --permission "admin" --add $admin
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX

View file

@ -201,9 +201,9 @@ chown -R $app: $final_path
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================
if ynh_exec_warn_less ynh_permission_create --permission "admin"; then if ! ynh_permission_exists --permission "admin"; then
ynh_print_info "Upgrading SSOwat configuration..." ynh_print_info "Upgrading SSOwat configuration..."
ynh_permission_update --permission "admin" --add $admin ynh_permission_create --permission "admin" --url "/admin" --allowed $admin
fi fi
#================================================= #=================================================