Merge tag 'v2.7.0rc1' into instance_only_statuses

This commit is contained in:
Renato "Lond" Cerqueira
2019-01-09 11:03:36 +01:00
585 changed files with 16064 additions and 8145 deletions
+8
View File
@@ -9,6 +9,10 @@ class AccountPolicy < ApplicationPolicy
staff?
end
def warn?
staff? && !record.user&.staff?
end
def suspend?
staff? && !record.user&.staff?
end
@@ -33,6 +37,10 @@ class AccountPolicy < ApplicationPolicy
staff?
end
def remove_header?
staff?
end
def subscribe?
admin?
end
@@ -0,0 +1,19 @@
# frozen_string_literal: true
class AccountWarningPresetPolicy < ApplicationPolicy
def index?
staff?
end
def create?
staff?
end
def update?
staff?
end
def destroy?
staff?
end
end
+1 -1
View File
@@ -5,7 +5,7 @@ class InstancePolicy < ApplicationPolicy
admin?
end
def resubscribe?
def show?
admin?
end
end
+15
View File
@@ -0,0 +1,15 @@
# frozen_string_literal: true
class TagPolicy < ApplicationPolicy
def index?
staff?
end
def hide?
staff?
end
def unhide?
staff?
end
end