mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Merge pull request #3074 from techAPJ/patch-1
FIX: show only staff actions in export and hide site setting logs from m...
This commit is contained in:
commit
e46abdd4a2
@ -68,7 +68,13 @@ module Jobs
|
||||
end
|
||||
|
||||
def staff_action_export
|
||||
staff_action_data = UserHistory.order('id DESC').to_a
|
||||
if @current_user.admin?
|
||||
staff_action_data = UserHistory.only_staff_actions.order('id DESC').to_a
|
||||
else
|
||||
# moderator
|
||||
staff_action_data = UserHistory.where(admin_only: false).only_staff_actions.order('id DESC').to_a
|
||||
end
|
||||
|
||||
staff_action_data.map do |staff_action|
|
||||
get_staff_action_fields(staff_action)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user