mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
Add permission cf #129
This commit is contained in:
parent
eaf1bf0f7c
commit
e184d17e65
2 changed files with 7 additions and 0 deletions
|
@ -165,6 +165,8 @@ else
|
|||
ynh_app_setting_set --app=$app --key=unprotected_uris --value="/jsonrpc.php"
|
||||
fi
|
||||
|
||||
ynh_permission_create --permission "ics" --url "/controller=ICalendarController" --allowed "visitors" --label "ICS Public access"
|
||||
|
||||
# Calculate and store the config file checksum into the app settings
|
||||
ynh_store_file_checksum --file="$final_path/config.php"
|
||||
|
||||
|
|
|
@ -70,6 +70,11 @@ if ynh_legacy_permissions_exists; then
|
|||
ynh_app_setting_delete --app=$app --key=is_public
|
||||
fi
|
||||
|
||||
# Create a permission if needed
|
||||
if ! ynh_permission_exists --permission="ics"; then
|
||||
ynh_permission_create --permission "ics" --url "/controller=ICalendarController" --allowed "visitors" --label "ICS Public access"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue