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

add permissions for MyPads admin

This commit is contained in:
ericgaspar 2021-05-13 18:43:52 +02:00
parent d24cd08309
commit cf4065e6f4
2 changed files with 7 additions and 0 deletions

View file

@ -307,6 +307,10 @@ fi
# Etherpad admin page doesn't support SSO...
ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin
if [ $mypads -eq 1 ]; then
ynh_permission_create --permission="admin" --url="/mypads/?/admin" --allowed=$admin
fi
#=================================================
# RELOAD NGINX
#=================================================

View file

@ -136,6 +136,9 @@ fi
if ! ynh_permission_exists --permission="admin"; then
# Create the required permissions
ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin
if [ $mypads -eq 1 ]; then
ynh_permission_create --permission="admin" --url="/mypads/?/admin" --allowed=$admin
fi
fi
#=================================================