discourse/lib/guardian
Dan Ungureanu dd175537f3
FIX: Existing shared drafts should be accessible (#11915)
Disabling shared drafts used to leave topics in an inconsistent state
where they were not displayed as shared drafts and thus there was no
way of publishing them. Moreover, they were accessible just to users
who have permissions to create shared drafts.

This commit adds another permission check that is used for most
operations and the old can_create_shared_draft? remains used just when
creating a new shared draft.
2021-02-01 16:16:34 +02:00
..
bookmark_guardian.rb FEATURE: Allow editing bookmark reminders (#9437) 2020-04-17 11:08:07 +10:00
category_guardian.rb FEATURE - Moderators can create and manage groups (#10432) 2020-08-19 10:41:40 -04:00
ensure_magic.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
group_guardian.rb FIX: Always let moderators to see their group PMs (#10813) 2020-10-05 19:38:08 +03:00
post_guardian.rb FIX: Existing shared drafts should be accessible (#11915) 2021-02-01 16:16:34 +02:00
post_revision_guardian.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
tag_guardian.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
topic_guardian.rb FIX: Existing shared drafts should be accessible (#11915) 2021-02-01 16:16:34 +02:00
user_guardian.rb FIX: hide sso email behind a button click and log views (#11186) 2020-11-11 00:42:44 +05:30