private function checkRoleContentTypePermission($roleName, $permissionName, $contenttype)
    {
        // Actions on non-existing contenttypes are not allowed.
        if (!$this->app['storage.metadata']->createContentType($contenttype)) {
            return false;
        }

        $roles = $this->getRolesByContentTypePermission($permissionName, $contenttype);

        return in_array($roleName, $roles);
    }
private function checkRoleContentTypePermission($roleName, $permissionName, $contenttype)
    {
        // Actions on non-existing contenttypes are not allowed.
        if (!$this->app['storage.metadata']->createContentType($contenttype)) {
            return false;
        }

        $roles = $this->getRolesByContentTypePermission($permissionName, $contenttype);

        return in_array($roleName, $roles);
    }
private function checkRoleContentTypePermission ( $ roleName , $ permissionName , $ contenttype ) { // Actions on non-existing contenttypes are not allowed. if ( ! $ this -> app [ 'storage.metadata' ] -> createContentType ( $ contenttype ) ) { return false ; } $ roles = $ this -> getRolesByContentTypePermission ( $ permissionName , $ contenttype ) ; return in_array ( $ roleName , $ roles ) ; }
Check if a role has a specific Contenttype permission.

@param string $roleName
@param string $permissionName
@param string $contenttype

@throws \Bolt\Exception\StorageException

@return bool
Check if a role has a specific Contenttype permission .