From dcdf9522e64f93e5f312bea187e530d7beb1971f Mon Sep 17 00:00:00 2001 From: Kayou Date: Mon, 23 Mar 2020 00:53:37 +0100 Subject: [PATCH] https://github.com/YunoHost/yunohost/pull/894 --- groups_and_permissions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/groups_and_permissions.md b/groups_and_permissions.md index 4b28d3ee..7d8070b0 100644 --- a/groups_and_permissions.md +++ b/groups_and_permissions.md @@ -134,7 +134,7 @@ Installing an app creates the permission `app.main` with `all_users` allowed by If you wish to make the application publicly available, instead of the old `unprotected_urls` mechanism, you should give access to the special groups `visitors`: ```bash -ynh_permission_update --permission "main" --add "visitors" +ynh_permission_update --permission "main" --add "all_users" "visitors" ``` If you wish to create a custom permission for your app (e.g. to restrict access to an admin interface) you may use the following helpers: @@ -181,7 +181,7 @@ But you can create a fake permission and use hooks to handle if there is a chang In the install script, create the fake permission (with no url): -`ynh_permission_create --permission="create poll" --allowed="visitors"` +`ynh_permission_create --permission="create poll" --allowed "visitors" "all_users"` Then use the legacy protection: @@ -278,4 +278,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.