diff --git a/manifest.json b/manifest.json index 6ad59f3..d846fba 100644 --- a/manifest.json +++ b/manifest.json @@ -14,7 +14,7 @@ "email": "cyp@rouquin.me" }, "requirements": { - "yunohost": ">= 4.1.0" + "yunohost": ">= 4.2.7" }, "multi_instance": true, "services": [ diff --git a/scripts/_ynh_permission_has_user.sh b/scripts/_ynh_permission_has_user.sh deleted file mode 100644 index ae04fbc..0000000 --- a/scripts/_ynh_permission_has_user.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -ynh_permission_has_user() { - local legacy_args=pu - # Declare an array to define the options of this helper. - local -A args_array=( [p]=permission= [u]=user= ) - local permission - local user - # Manage arguments with getopts - ynh_handle_getopts_args "$@" - - if ! ynh_permission_exists --permission=$permission - then - return 1 - fi - - # Check both allowed and corresponding_users sections in the json - for section in "allowed" "corresponding_users" - do - if yunohost user permission info "$app.$permission" --output-as json --quiet \ - | jq -e --arg user $user --arg section $section '.[$section] | index($user)' >/dev/null - then - return 0 - fi - done - - return 1 -} \ No newline at end of file diff --git a/scripts/upgrade b/scripts/upgrade index 27143e2..2fb6f35 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -8,7 +8,6 @@ source _common.sh source /usr/share/yunohost/helpers -source _ynh_permission_has_user.sh #================================================= # LOAD SETTINGS