post_disapprovals/index: don't show usernames to other users.
* Don't show who disapproved the post to other users. Only show the creator to mods or to the disapprover themselves. * Let unprivileged users see the /post_disapprovals index.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class PostDisapprovalsController < ApplicationController
|
||||
before_action :approver_only
|
||||
before_action :approver_only, only: [:create]
|
||||
skip_before_action :api_check
|
||||
respond_to :js, :html, :json, :xml
|
||||
|
||||
|
||||
Reference in New Issue
Block a user