ownsResource method

bool ownsResource(
  1. dynamic resourceOwnerId
)

Checks if the user owns a resource (by comparing user ID).

Implementation

bool ownsResource(dynamic resourceOwnerId) {
  if (isGuest) return false;
  return userId == resourceOwnerId;
}