Unverified Commit ff15039d authored by Kevin Di Lallo's avatar Kevin Di Lallo Committed by GitHub
Browse files

Merge pull request #290 from dilallkx/kd_sp33_fix_perm

App Enablement permissions fix
parents b774ce25 f4334282
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -730,6 +730,17 @@ func asAuthenticate(w http.ResponseWriter, r *http.Request) {
		if svcName != "" {
			if svcPermissions, found := authSvc.cache.Services[svcName]; found {
				permission = svcPermissions[routeName]
			} else {
				// Possibly a multi-API service.
				// Search for prefix key matches in this case.
				for key, permissions := range authSvc.cache.Services {
					if strings.HasPrefix(key, svcName) {
						permission = permissions[routeName]
						if permission != nil {
							break
						}
					}
				}
			}
		}
		// Check file servers if not already found