/**
* Check if the current user has a permission.
- * If an ownable element is passed in the permissions are checked against
+ * If an ownable element is passed in the jointPermissions are checked against
* that particular item.
* @param $permission
* @param \BookStack\Ownable $ownable
}
// Check permission on ownable item
- $restrictionService = app('BookStack\Services\RestrictionService');
- return $restrictionService->checkEntityUserAccess($ownable, $permission);
+ $permissionService = app('BookStack\Services\PermissionService');
+ return $permissionService->checkEntityUserAccess($ownable, $permission);
}
/**