mirror of
https://github.com/YunoHost-Apps/diaspora_ynh.git
synced 2024-09-03 18:26:13 +02:00
Merge pull request #26 from yunohost-bot/new-permission-system
This commit is contained in:
commit
5f21970b90
2 changed files with 12 additions and 2 deletions
|
@ -172,8 +172,8 @@ yunohost service add $app.target \
|
|||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
#=================================================
|
||||
# unprotected_uris allows SSO credentials to be passed anyway.
|
||||
ynh_app_setting_set $app unprotected_uris "/"
|
||||
|
||||
|
||||
|
||||
#=================================================
|
||||
# CREATE AN ADMIN
|
||||
|
|
|
@ -27,6 +27,16 @@ ynh_clean_setup() {
|
|||
}
|
||||
ynh_abort_if_errors
|
||||
|
||||
#=================================================
|
||||
# Migrate legacy permissions to new system
|
||||
#=================================================
|
||||
if ynh_legacy_permissions_exists
|
||||
then
|
||||
ynh_legacy_permissions_delete_all
|
||||
|
||||
ynh_app_setting_delete --app=$app --key=is_public
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# Check upgrade type
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue