1
0
Fork 0
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:
Augustin Trancart 2022-02-04 15:14:02 +01:00 committed by GitHub
commit 5f21970b90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View file

@ -172,8 +172,8 @@ yunohost service add $app.target \
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================
# unprotected_uris allows SSO credentials to be passed anyway.
ynh_app_setting_set $app unprotected_uris "/"
#================================================= #=================================================
# CREATE AN ADMIN # CREATE AN ADMIN

View file

@ -27,6 +27,16 @@ ynh_clean_setup() {
} }
ynh_abort_if_errors 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 # Check upgrade type
#================================================= #=================================================