mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Add post_app_*access hooks
This commit is contained in:
parent
a8cf641ca2
commit
ba61264331
1 changed files with 4 additions and 0 deletions
4
app.py
4
app.py
|
@ -646,6 +646,8 @@ def app_clearaccess(auth, apps):
|
|||
apps
|
||||
|
||||
"""
|
||||
from yunohost.hook import hook_callback
|
||||
|
||||
if not isinstance(apps, list): apps = [apps]
|
||||
|
||||
for app in apps:
|
||||
|
@ -662,6 +664,8 @@ def app_clearaccess(auth, apps):
|
|||
if 'allowed_users' in app_settings:
|
||||
app_setting(app, 'allowed_users', delete=True)
|
||||
|
||||
hook_callback('post_app_clearaccess', [app])
|
||||
|
||||
app_ssowatconf(auth)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue