Skip to content

Commit f8b012d

Browse files
committed
bug fix
1 parent 3e02395 commit f8b012d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

permissions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var HandlerGetPermissionsByUserID func(userID string) ([]Permission, error)
2323

2424
// IsAuthorized returns error only if the process failed, not if it's not authorized.
2525
func IsAuthorized(w http.ResponseWriter, r *http.Request, metadata *string) (userID string, isAuthorized bool, err error) {
26-
endpointKey := r.Method + r.URL.Path
26+
endpointKey := r.Method + r.Pattern
2727

2828
permissionKey, ok := Permissions[endpointKey]
2929
if !ok {

0 commit comments

Comments
 (0)