From ba6126433106816604277c7741465a65008f2d58 Mon Sep 17 00:00:00 2001 From: kload Date: Sat, 28 Jun 2014 12:27:55 +0200 Subject: [PATCH] [enh] Add post_app_*access hooks --- app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.py b/app.py index 3bb72ce02..0abd2f93a 100644 --- a/app.py +++ b/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)