I added an error so that deactivated users can't make a post. When users are deactivated, their post statuses are toggled to closed (I haven't seen any other use for this enum value so I'm not 100% sure if this is the intended use). For now, admins also can't see posts by deactivated users. Also tweaked the toggle active function so it returns the new active value rather than the old one.
I added an error so that deactivated users can't make a post. When users are deactivated, their post statuses are toggled to closed (I haven't seen any other use for this enum value so I'm not 100% sure if this is the intended use). For now, admins also can't see posts by deactivated users. Also tweaked the toggle active function so it returns the new active value rather than the old one.