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

This commit is contained in:
Jenkins
2017-12-02 14:17:11 +00:00
14 changed files with 102 additions and 25 deletions

View File

@@ -10,7 +10,7 @@ class InvitePolicy < ApplicationPolicy
end
def destroy?
owner? || staff?
owner? || (Setting.min_invite_role == 'admin' ? admin? : staff?)
end
private