mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -36,7 +36,7 @@ func AuthAny(c *gin.Context, resource acl.Resource, grants acl.Permissions) (s *
|
|||||||
// Check ACL resource name against the permitted scope.
|
// Check ACL resource name against the permitted scope.
|
||||||
if !s.HasScope(resource.String()) {
|
if !s.HasScope(resource.String()) {
|
||||||
event.AuditErr([]string{clientIp, "client %s", "session %s", "access %s", "denied"}, s.AuthID, s.RefID, string(resource))
|
event.AuditErr([]string{clientIp, "client %s", "session %s", "access %s", "denied"}, s.AuthID, s.RefID, string(resource))
|
||||||
return s
|
return entity.SessionStatusForbidden()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Perform an authorization check based on the ACL defaults for client applications.
|
// Perform an authorization check based on the ACL defaults for client applications.
|
||||||
|
|||||||
Reference in New Issue
Block a user