mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
Update groups_and_permissions.md
This commit is contained in:
parent
d3bff46c2d
commit
ffd82d1c8f
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
If you have any questions, please contact someone from the apps-group.
|
||||
|
|
Loading…
Reference in a new issue