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:
parent
d24cd08309
commit
cf4065e6f4
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue