GOCDB / gocdb

Grid Operations Configuration Management Database. A Repository, Portal and REST style API for managing Grid and Cloud topology objects including; projects, administrative domains, sites, services, service-endpoints, service-groups, downtimes, users, roles and business rules.
Apache License 2.0
12 stars 27 forks source link

[GT-182] Add restrictions on who can create SG's #460

Closed Sae126V closed 1 year ago

Sae126V commented 1 year ago

If a user is an Admin -> they are allowed to ADD new service group's.

If a user is NOT an Admin: 1) Case1: User is NOT allowed to add new SG's. If a User have no roles assigned. 2) Case2: User is allowed to add new SG's. If a user is registered and have at least one role assigned with 'STATUS_GRANTED'.

Resolves #364

Sae126V commented 1 year ago

Ready to be reviewed.

gregcorbett commented 1 year ago

Looks good to me, can you remove "(F)" from the commit message please?

Sae126V commented 1 year ago

Looks good to me, can you remove "(F)" from the commit message please?

Done. I have reworded the commit. The reason I have added is I wanted to differentiate styles vs functionality.

gregcorbett commented 1 year ago

rebasing on top of latest dev