Closed joaodiaslobo closed 11 months ago
AI-Generated Summary: This pull request contains various changes primarily aimed at addressing issues with admin users. The changes revolve around clean-up of code and optimizing some features. Highlights include:
list_activities_by_department_id
function and changes in how permissions are checked in different activity and announcement files.activity_live
files. announcement_live
paths. department_live
. The changes aim to improve user management and application functionality. It must be noted that amidst these changes, deletions slightly outweigh insertions.
Some pages dependent on the
current_organization
key from socket assigns for redirects were causing multiple errors when being viewed by platform admin users, this PR changes these pages to use the organization related to the entity being viewed. Also makes sure that buttons to create new entities are only shown if an organization is actually selected.