From 66e2027c10371ffeadcf0a261417de16a1131c3b Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Fri, 26 Sep 2025 05:55:50 +0200 Subject: [PATCH] Auth: Shorten code comments in pkg/clean/scope.go #98 #5230 Signed-off-by: Michael Mayer --- pkg/clean/scope.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/clean/scope.go b/pkg/clean/scope.go index 1a311da56..be7f5e94b 100644 --- a/pkg/clean/scope.go +++ b/pkg/clean/scope.go @@ -6,7 +6,7 @@ import ( "github.com/photoprism/photoprism/pkg/list" ) -// Scope sanitizes a string that contains authentication scope identifiers. +// Scope sanitizes a string that contains auth scope identifiers. // Callers should use acl.ScopeAttrPermits / acl.ScopePermits for authorization checks. func Scope(s string) string { if s == "" { @@ -16,7 +16,7 @@ func Scope(s string) string { return list.ParseAttr(strings.ToLower(s)).String() } -// Scopes sanitizes authentication scope identifiers and returns them as string slice. +// Scopes sanitizes auth scope identifiers and returns them as strings. // Callers should use acl.ScopeAttrPermits / acl.ScopePermits for authorization checks. func Scopes(s string) []string { if s == "" {