0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/test/regression/api
Naz Gargol 786eaac57e
Added permission restrictions to editing members flag (#11217)
no issue

- Added test cases to check edit permission on settings endpoints
- Added test to demonstrate owner-only being able to toggle members flag
- Permission check when editing settings `lab.members`
- Passed additional function to permissions to allow custom selection of unsafe attributes due to settings object structure.
- Fully implementing this check on controller level would be wrong architecturally and not that straight forward because we lack role data in "frame"
- Cleaned up test after moving default_content_visibility to it's own property
2019-10-09 10:26:54 +02:00
..
canary Added permission restrictions to editing members flag (#11217) 2019-10-09 10:26:54 +02:00
v0.1 Fixed db regression tests 2019-09-30 22:32:11 +02:00
v2 Added permission restrictions to editing members flag (#11217) 2019-10-09 10:26:54 +02:00
admin_spec.js Fixed regression tests expecting relative URLs for admin redirects 2019-09-09 15:52:26 +01:00