You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think you've done all the domain and facade work required to add a new GroupPermission to the database, so the bit thats left is just wiring it up to the endpoint handlers in the module
You'll need to decide how the client is going to specify that it is a group permission they are trying to create, since currently there is only one POST endpoint to authorisation/permissions (which currently only handles the individual case). You could either:
make two seperated endpoints, one specific for groups, one specific for individuals... or
check the PermissionResource in your module handler function and check if the GranteeGroupId field is not null. We can use the presence/absence of this field to infer whether its a GroupPermission or an IndividualPermission the client is trying to create, and call the correct service method accordingly
I think the second option is probably less work
I think the second option is probably less work
The text was updated successfully, but these errors were encountered: