Kayou 2020-03-23 00:53:37 +01:00 committed by GitHub
parent d3bff46c2d
commit dcdf9522e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: