From dd7690fd974fdc71e39e33d3fa839128130fd11c Mon Sep 17 00:00:00 2001 From: Prabhjot Singh Sethi Date: Thu, 3 Jul 2025 13:22:22 +0000 Subject: [PATCH] Enable scopes in the routes Signed-off-by: Prabhjot Singh Sethi --- route/route.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/route/route.go b/route/route.go index 97a951e..0d35cab 100644 --- a/route/route.go +++ b/route/route.go @@ -46,6 +46,13 @@ type Route struct { // RBAC constructs associated with Route Resource string `bson:"resource,omitempty"` Verb string `bson:"verb,omitempty"` + + // if this is a scoped route, this array would be non empty + // well at the moment, only a single scope will be enabled + // that too will be only organisation unit. + // if first scope is not ou, then it is assumed to be + // equivalent to be empty and hence not scoped + Scopes []string `bson:"scopes,omitempty"` } type RouteTable struct {