*/
public $enableTracking = true;
- /**
- * @see \wcf\page\AbstractPage::$neededPermissions
- */
- public $neededPermissions = array('user.profile.canViewUserProfile');
-
/**
* edit profile on page load
* @var boolean
throw new IllegalLinkException();
}
+ if ($this->user->userID != WCF::getUser()->userID && !WCF::getSession()->getPermission('user.profile.canViewUserProfile')) {
+ throw new PermissionDeniedException();
+ }
+
// check is Accessible
if ($this->user->isProtected()) {
throw new PermissionDeniedException();