Merge pull request #27 from YunoHost-Apps/fix-is-public-check
No is_public anymore, use ynh_permission_has_user
This commit is contained in:
commit
fb4755f6c8
@ -168,7 +168,9 @@ popd
|
||||
# UPDATE A CONFIG FILE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Updating a configuration file..."
|
||||
if [ $is_public -eq 1 ]; then
|
||||
|
||||
if ynh_permission_has_user --permission=main --user=visitors
|
||||
then
|
||||
announce="true"
|
||||
else
|
||||
announce="fase"
|
||||
|
Loading…
x
Reference in New Issue
Block a user