mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
Remove unnecessary permission check
This commit is contained in:
parent
247a2b2c03
commit
1734963693
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ func (h *Handler) GetInstanceSetting(w http.ResponseWriter, r *http.Request) {
|
||||||
ctx := domain.GetRequestContext(r)
|
ctx := domain.GetRequestContext(r)
|
||||||
|
|
||||||
orgID := request.Param(r, "orgID")
|
orgID := request.Param(r, "orgID")
|
||||||
if orgID != ctx.OrgID || !ctx.Administrator {
|
if orgID != ctx.OrgID {
|
||||||
response.WriteForbiddenError(w)
|
response.WriteForbiddenError(w)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue