public function canModerateObject(int $objectTypeID, int $objectID, UserProfile $user): bool
{
$entry = new ModerationQueue($objectID);
- return ($entry->canEdit($user->getDecoratedObject()));
+
+ return $entry->canEdit($user->getDecoratedObject());
}
/**
/** @see UserProfile::isProtected() */
if (
!(
- $user->getPermission('admin.general.canViewPrivateUserOptions')
+ $user->getPermission('admin.general.canViewPrivateUserOptions')
|| $userProfile->isAccessible('canViewProfile', $user->userID)
- || $userProfile->userID === $user->userID)
+ || $userProfile->userID === $user->userID
+ )
) {
return false;
}
+
return (bool)$user->getPermission($this->permissionCanModerate);
}