We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 799c2e47 authored by mattl's avatar mattl

Don't depend on ModLog

parent be35975b
......@@ -155,8 +155,8 @@ class RegisterThrottlePlugin extends Plugin
$scoped = $action->getScoped();
if (!$scoped instanceof Profile || !$scoped->hasRight(self::VIEWMODLOG)) {
// only continue if we are allowed to VIEWMODLOG
if (!$scoped->hasRight(Right::SILENCEUSER)) {
// only show registration IP if we have the right to silence users
return true;
......@@ -15,8 +15,8 @@ class IpregistrationsAction extends ManagedAction
protected function doPreparation()
if (!$scoped->hasRight(self::VIEWMODLOG) && !$scoped->hasRole(Profile_role::ADMINISTRATOR)) {
throw new AuthorizationException(_('You do not have privileges to see this page'));
if (!$scoped->hasRight(Right::SILENCEUSER) && !$scoped->hasRole(Profile_role::ADMINISTRATOR)) {
throw new AuthorizationException(_('You are not authorized to view this page.'));
$this->ipaddress = $this->trimmed('ipaddress');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment