ownsResource method
Checks if the user owns a resource (by comparing user ID).
Implementation
bool ownsResource(dynamic resourceOwnerId) {
if (isGuest) return false;
return userId == resourceOwnerId;
}
Checks if the user owns a resource (by comparing user ID).
bool ownsResource(dynamic resourceOwnerId) {
if (isGuest) return false;
return userId == resourceOwnerId;
}