Checking permissions when removing a message to prevent users from removing messages they don't have access to