Currently, page edit form for both organization and group pages calls pages_update function, that requires sysadmin account. As a result, organization admins(not sysadmins) will be logged out after an attempt to update the organization's page.
This PR updates permission checks as well as fixes few small problems(for example, group/org edit auth checks were returning boolean instead of dict in form {'success': boolean})
Currently, page edit form for both organization and group pages calls
pages_update
function, that requires sysadmin account. As a result, organization admins(not sysadmins) will be logged out after an attempt to update the organization's page.This PR updates permission checks as well as fixes few small problems(for example, group/org edit auth checks were returning boolean instead of dict in form
{'success': boolean}
)