throw new Exception("Can't save role '$name' for profile '{$this->id}'");
}
+ if ($name == 'owner') {
+ User::blow('user:site_owner');
+ }
+
Event::handle('EndGrantRole', array($this, $name));
}
throw new Exception(sprintf(_('Cannot revoke role "%1$s" for user #%2$d; database error.'),$name, $this->id));
}
+ if ($name == 'owner') {
+ User::blow('user:site_owner');
+ }
+
Event::handle('EndRevokeRole', array($this, $name));
return true;