graph sharing: delete link permission

Allow to delete link permissions (i.e. Public Shares)
This commit is contained in:
Ralf Haferkamp
2023-11-28 17:13:30 +01:00
committed by Ralf Haferkamp
parent 9d3523e310
commit afb127090d
3 changed files with 165 additions and 85 deletions

View File

@@ -154,6 +154,10 @@ func (e Error) Error() string {
return errString
}
func (e Error) GetCode() ErrorCode {
return e.errorCode
}
// RenderError render the Graph Error based on a code or default one
func RenderError(w http.ResponseWriter, r *http.Request, err error) {
var errcode Error