From 0bf5d5d24f611ed97208552190c3abea70deae08 Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Mon, 20 May 2019 15:37:16 +0200 Subject: [PATCH] Fix comments on permissions Check() function --- internal/permissions/ruleset_checks.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/internal/permissions/ruleset_checks.go b/internal/permissions/ruleset_checks.go index 520e25ab6..e75f0389d 100644 --- a/internal/permissions/ruleset_checks.go +++ b/internal/permissions/ruleset_checks.go @@ -3,12 +3,11 @@ package permissions // Check verifies if role has access to perform an operation on a resource // // Overall flow: -// - no roles, no access // - invalid resource, no access -// - can this specific role perform an operation on this specific resource -// - can this specific role perform an operation on any resource of the type (wildcard) -// - can anyone perform an operation on this specific resource -// - can anyone perform an operation on any resource of the type (wildcard) +// - can this combination of roles perform an operation on this specific resource +// - can this combination of roles perform an operation on any resource of the type (wildcard) +// - can anyone/everyone perform an operation on this specific resource +// - can anyone/everyone perform an operation on any resource of the type (wildcard) func (set RuleSet) Check(res Resource, op Operation, roles ...uint64) (v Access) { if !res.IsValid() {