We need to introduces new thread permission that limits who is able to manage the pins for a thread. At the moment, this is only granted to Admins, so there's a couple of things that need to be done here:
- Update the baseAdminPriviledges so new chats with admins will have the correct, updated permissions
- Run a migration to cover existing threads
We call updateRolesAndPermissionsForAllThreads() which should handle updating the permissions for each of the threads given the new roles.
The migration was discussed in the Linear task.
Depends on D7199