url: '{link controller="BackgroundQueuePerform"}{/link}',
force: {if $forceBackgroundQueuePerform|isset}true{else}false{/if}
},
+ enableUserPopover: {if $__wcf->getSession()->getPermission('user.profile.canViewUserProfile')}true{else}false{/if},
styleChanger: {if $__wcf->getStyleHandler()->showStyleChanger()}true{else}false{/if}
});
ControllerStyleChanger.setup();
}
- this._initUserPopover();
+ if (options.enableUserPopover) {
+ this._initUserPopover();
+ }
+
this._invokeBackgroundQueue(options.backgroundQueue.url, options.backgroundQueue.force);
UiUserIgnore.init();
* Validates user profile preview.
*/
public function validateGetUserProfile() {
+ WCF::getSession()->checkPermissions(['user.profile.canViewUserProfile']);
+
if (count($this->objectIDs) != 1) {
throw new UserInputException('objectIDs');
}