[enh] Add post_app_*access hooks

This commit is contained in:
kload 2014-06-28 12:27:55 +02:00
parent a8cf641ca2
commit ba61264331

4
app.py
View file

@ -646,6 +646,8 @@ def app_clearaccess(auth, apps):
apps apps
""" """
from yunohost.hook import hook_callback
if not isinstance(apps, list): apps = [apps] if not isinstance(apps, list): apps = [apps]
for app in apps: for app in apps:
@ -662,6 +664,8 @@ def app_clearaccess(auth, apps):
if 'allowed_users' in app_settings: if 'allowed_users' in app_settings:
app_setting(app, 'allowed_users', delete=True) app_setting(app, 'allowed_users', delete=True)
hook_callback('post_app_clearaccess', [app])
app_ssowatconf(auth) app_ssowatconf(auth)