From ffd82d1c8f91109f64141978b21f4ff6c442eda8 Mon Sep 17 00:00:00 2001 From: Kayou Date: Thu, 26 Mar 2020 21:32:50 +0100 Subject: [PATCH] Update groups_and_permissions.md --- groups_and_permissions.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/groups_and_permissions.md b/groups_and_permissions.md index 4b28d3ee..d08c3231 100644 --- a/groups_and_permissions.md +++ b/groups_and_permissions.md @@ -159,6 +159,7 @@ When migrating away from the legacy permission, you should: - remove any management of `$is_public`-like or `$admin_user`-like setting, except for any manifest question meant to either *initialize* the app as public/private or specific permissions ; - remove any management of `skipped_`, `unprotected_` and `protected_uris` (and `_regex`) settings that are now considered obsolete and deprecated. (N.B.: you should **explicitly delete them in the upgrade script**). Instead, you should now rely on the new `ynh_permission_*` helpers instead. If you do feel like you still need to use them, please contact the core team to provide your feedback and we'll figure out something ; For example, in the upgrade script if you used the `protected_uris` key before, you may use this code in the `DOWNWARD COMPATIBILITY` section: + ```bash protected_uris=$(ynh_app_setting_get --app=$app --key=protected_uris) @@ -278,4 +279,4 @@ Don't forget to replace `__APP__` during the install/upgrade script. Here some apps that use this specific case: [Lutim](https://github.com/YunoHost-Apps/lutim_ynh/pull/44/files) and [Opensondage](https://github.com/YunoHost-Apps/opensondage_ynh/pull/59/files) -If you have any questions, please contact someone from the apps-group. \ No newline at end of file +If you have any questions, please contact someone from the apps-group.