$hasWebsitePermission()

Overview

public any function $hasWebsitePermission()

Proxy to the websiteloginservice-haspermission method of Website permissions service. See Website users and permissioning for a full guide.

Example

if ( $hasWebsitePermission( "review.submit" ) ) {
// ...
}