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