From 5e85e9f92053b3d52b1650baadd135b017e3fea8 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 5 Apr 2021 17:37:00 +0200 Subject: [PATCH] fix admin --- scripts/install | 8 -------- scripts/upgrade | 5 ----- 2 files changed, 13 deletions(-) diff --git a/scripts/install b/scripts/install index b02bdf6..1f6aab4 100644 --- a/scripts/install +++ b/scripts/install @@ -185,14 +185,6 @@ then ynh_permission_update --permission="main" --add="visitors" fi -# Only the admin can access the admin panel of the app (if the app has an admin panel) -ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin - -# Everyone can access to the api part -# We don't want to display the tile in the sso so we put --show_tile="false" -# And we don't want that the YunoHost Admin can remove visitors group to this permission, so we put --protected="true" -ynh_permission_create --permission="api" --url "/api" --allowed="visitors" --show_tile="false" --protected="true" - #================================================= # RELOAD NGINX #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 2dd60bb..dff6aaa 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -59,11 +59,6 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi -if ! ynh_permission_exists --permission="admin"; then - # Create the required permissions - ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin -fi - #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #=================================================