1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wireguard_ynh.git synced 2024-09-03 20:35:58 +02:00

Improve visitor permission removal

This commit is contained in:
tituspijean 2021-01-21 22:04:04 +01:00
parent 4ea4acffcc
commit 36e0600016

View file

@ -50,7 +50,8 @@ then
fi fi
# WireGuard UI should be private, really. # WireGuard UI should be private, really.
if [ $(ynh_permission_has_user --permission=main --user=visitors) -eq 1 ]; then if ynh_permission_has_user --permission=main --user=visitors
then
ynh_permission_update --permission=main --remove=visitors ynh_permission_update --permission=main --remove=visitors
fi fi