getSpaceCheckAuth checks whether the user has the requested permission on the provided space and returns the space.
( ctx context.Context, session *auth.Session, spaceRef string, permission enum.Permission, )
| 160 | |
| 161 | // getSpaceCheckAuth checks whether the user has the requested permission on the provided space and returns the space. |
| 162 | func (c *Controller) getSpaceCheckAuth( |
| 163 | ctx context.Context, |
| 164 | session *auth.Session, |
| 165 | spaceRef string, |
| 166 | permission enum.Permission, |
| 167 | ) (*types.SpaceCore, error) { |
| 168 | return GetSpaceCheckAuth(ctx, c.spaceFinder, c.authorizer, session, spaceRef, permission) |
| 169 | } |
| 170 | |
| 171 | func (c *Controller) getSpaceCheckAuthRepoCreation( |
| 172 | ctx context.Context, |
no test coverage detected