You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removed gift links permission from the Author role (#28910)
ref https://linear.app/ghost/issue/BER-3748/
The gift links permission fixtures were too broad: Authors were granted
the "Manage gift links" permission, but Authors don't have permission to
change post visibility — so they shouldn't be able to manage gift links
either.
- Removed `gift_link: manage` from the Author role in the permission
fixtures
- Added a migration to drop the existing "Manage gift links" grant from
the Author role on sites that already ran the original gift links
permission migration
- Exported the existing `removePermissionFromRole` migration helper (the
natural inverse of `addPermissionToRole`) so the migration can use it
- Updated the migration integration assertion and the test-utils
fixtures copy to match, and extended the gift-links API test to assert
Authors (alongside Contributors) get a 403
0 commit comments