mirror of https://github.com/pixelfed/pixelfed
fix: viewPulse gate denies admins due to strict === on boolean is_admin
is_admin is cast to bool on the User model, so $user->is_admin === 1 is always false and the gate 403s every user, admins included. Use a boolean check, consistent with the viewHorizon gate.pull/7432/head
parent
139b29733e
commit
5654ab6c27
Loading…
Reference in New Issue