Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master

This commit is contained in:
Jenkins
2018-04-03 19:17:20 +00:00
70 changed files with 924 additions and 271 deletions

View File

@@ -29,6 +29,10 @@ class AccountPolicy < ApplicationPolicy
admin?
end
def remove_avatar?
staff?
end
def subscribe?
admin?
end

View File

@@ -0,0 +1,17 @@
# frozen_string_literal: true
class ReportNotePolicy < ApplicationPolicy
def create?
staff?
end
def destroy?
admin? || owner?
end
private
def owner?
record.account_id == current_account&.id
end
end