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:
parent
4ea4acffcc
commit
36e0600016
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ then
|
|||
fi
|
||||
|
||||
# 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
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue