// if restriction was defined, and user role is higher (in number) than the restriction, block access
returnnil,status.Error(codes.PermissionDenied,"You don't have the necessary permissions to complete the operation.")
// if restriction was defined, and user role is less than or equal to (in number, lower = higher privilege) the restriction (excluding 0 - UNKNOWN), allow access; otherwise block access for all but admins