diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2022-04-01 22:38:49 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-01 22:38:49 +1100 |
| commit | 3c1bb3ec1983e38f7d8ee3aa664c30521e12b5ff (patch) | |
| tree | 7f745c3c3e0e287ef2bb527c84d0e12a5939b663 /internal/authorization/access_control_resource.go | |
| parent | 0116506330822f0dac159004aedc056884e7ceed (diff) | |
feat(authorization): domain regex match with named groups (#2789)
This adds an option to match domains by regex including two special named matching groups. User matches the username of the user, and Group matches the groups a user is a member of. These are both case-insensitive and you can see examples in the docs.
Diffstat (limited to 'internal/authorization/access_control_resource.go')
| -rw-r--r-- | internal/authorization/access_control_resource.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/authorization/access_control_resource.go b/internal/authorization/access_control_resource.go index 3482b4130..9bfca6d20 100644 --- a/internal/authorization/access_control_resource.go +++ b/internal/authorization/access_control_resource.go @@ -6,7 +6,7 @@ import ( // AccessControlResource represents an ACL resource. type AccessControlResource struct { - Pattern *regexp.Regexp + Pattern regexp.Regexp } // IsMatch returns true if the ACL resource match the object path. |
