-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Allow any type of post revision for staff alias topics (#86)
Currently, when a post is modified, and the post is created by the "staff alias user", we go through some validations like is the user trying to edit a whisper? (not allowed) is the post modification done by "a user who can use the staff alias (SiteSetting.staff_alias_allowed_groups)? (ok) the modification is a wiki, post_type, user_id, title, tag -type modification. When a new modification-type is missing, the user will face a 422 error. This PR removes the criteria 3 to allow any modifications as long as the acting user is part of criteria 2. Related fixes in the past (73dffcd, 8762cc2, 291999b) were merely adding on to criteria 3 and it doesn't make sense long term.
- Loading branch information
Showing
3 changed files
with
25 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters