add an option to force settings to users
This commit is contained in:
@@ -55,8 +55,9 @@ class Application extends App
|
||||
public function isEnabled(): bool
|
||||
{
|
||||
$enabled = true;
|
||||
$isForced = (bool) $this->config->getAppValue(self::APP_ID, 'force', '0');
|
||||
|
||||
if (null !== $this->user) {
|
||||
if (null !== $this->user && !$isForced) {
|
||||
$enabled = (bool) $this->config->getUserValue($this->user->getUid(), self::APP_ID, 'enabled', '1');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user