1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-18 20:59:43 +02:00

Remove unnecessary permission check

This commit is contained in:
Harvey Kandola 2022-05-12 12:27:06 -04:00
parent 247a2b2c03
commit 1734963693

View file

@ -209,7 +209,7 @@ func (h *Handler) GetInstanceSetting(w http.ResponseWriter, r *http.Request) {
ctx := domain.GetRequestContext(r)
orgID := request.Param(r, "orgID")
if orgID != ctx.OrgID || !ctx.Administrator {
if orgID != ctx.OrgID {
response.WriteForbiddenError(w)
return
}