1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/technitium-dns_ynh.git synced 2024-09-03 20:26:36 +02:00

permission fix

This commit is contained in:
navanchauhan 2022-07-04 17:45:28 +05:30
parent 8025ae8b2b
commit 99cc6053ed

View file

@ -185,16 +185,7 @@ then
ynh_permission_update --permission="main" --add="visitors"
fi
### N.B. : the following extra permissions only make sense if your app
### does have for example an admin interface or an API.
# 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 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 the YunoHost admin to be able to 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"
#ynh_permission_create --permission="api" --url="/api" --allowed="visitors" --show_tile="false" --protected="true"
#=================================================
# RELOAD NGINX