diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-06-23 14:13:45 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-06-23 14:21:04 +0300 |
commit | 657551c399ed1211a516d3bca98834d44150e5fb (patch) | |
tree | 0376e212dfbd60cb9d7194e37b2aa9adb319b1a8 /lib/PermissionManager.php | |
parent | 15726c08f12c9ed13667321eb114e0a5cc3d05f4 (diff) |
Actually run the unit test
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/PermissionManager.php')
-rw-r--r-- | lib/PermissionManager.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PermissionManager.php b/lib/PermissionManager.php index d956c50c..cf1638ef 100644 --- a/lib/PermissionManager.php +++ b/lib/PermissionManager.php @@ -21,12 +21,13 @@ namespace OCA\Richdocuments; +use OCA\Richdocuments\AppInfo\Application; use OCP\IConfig; use OCP\IGroupManager; use OCP\IUser; class PermissionManager { - const APP_ID = 'richdocuments'; + /** @var IConfig */ private $config; /** @var IGroupManager */ @@ -47,7 +48,7 @@ class PermissionManager { } public function isEnabledForUser(IUser $user) { - $enabledForGroups = $this->config->getAppValue(self::APP_ID, 'use_groups', ''); + $enabledForGroups = $this->config->getAppValue(Application::APPNAME, 'use_groups', ''); if($enabledForGroups === '') { return true; } |