mirror of
https://github.com/friendica/friendica
synced 2025-04-26 05:10:11 +00:00
Preparations for a moderator role
This commit is contained in:
parent
41bc148040
commit
0a45bdd3b7
5 changed files with 31 additions and 4 deletions
|
@ -175,7 +175,7 @@ class Ping extends BaseModule
|
|||
$myurl = $this->session->getMyUrl();
|
||||
$mail_count = $this->database->count('mail', ["`uid` = ? AND NOT `seen` AND `from-url` != ?", $this->session->getLocalUserId(), $myurl]);
|
||||
|
||||
if (intval($this->config->get('config', 'register_policy')) === Register::APPROVE && $this->app->isSiteAdmin()) {
|
||||
if (intval($this->config->get('config', 'register_policy')) === Register::APPROVE && $this->session->isSiteAdmin()) {
|
||||
$registrations = \Friendica\Model\Register::getPending();
|
||||
$register_count = count($registrations);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue