Skip to content

Commit

Permalink
fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtificialOwl committed Oct 4, 2021
1 parent 94cace2 commit 501e9f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Activity/GlobalSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ public function getPriority(): int {
* @return bool
*/
public function canChangeStream(): bool {
return $this->isAdmin();
return false;
}

/**
* @return bool
*/
public function isDefaultEnabledStream(): bool {
return $this->isAdmin();
return true;
}

/**
Expand All @@ -125,7 +125,7 @@ public function canChangeNotification(): bool {
* @return bool
*/
public function isDefaultEnabledMail(): bool {
return $this->isAdmin();
return false;
}


Expand All @@ -134,6 +134,7 @@ public function isDefaultEnabledMail(): bool {
*/
private function isAdmin(): bool {
$user = $this->userSession->getUser();

return $this->groupManager->isAdmin($user->getUID());

}
Expand Down

0 comments on commit 501e9f1

Please sign in to comment.