Implemented basic ui for server sharing. Extracted server authorization. Refactoring and small improvements
This commit is contained in:
@@ -138,7 +138,12 @@ public class VariablesController : Controller
|
||||
);
|
||||
|
||||
if (!authorizeResult.Succeeded)
|
||||
throw new HttpApiException("No permission for the requested resource", 403);
|
||||
{
|
||||
throw new HttpApiException(
|
||||
authorizeResult.Message ?? "No permission for the requested resource",
|
||||
403
|
||||
);
|
||||
}
|
||||
|
||||
return server;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user