pools: allow new users to remove posts from pools.

Remove the rule that users less than a week old can't remove posts from
pools.
This commit is contained in:
evazion
2020-03-21 22:19:35 -05:00
parent 92e4635af8
commit aefbed57b8
3 changed files with 1 additions and 15 deletions

View File

@@ -1011,7 +1011,6 @@ class Post < ApplicationRecord
def remove_pool!(pool)
return unless belongs_to_pool?(pool)
return unless CurrentUser.user.can_remove_from_pools?
with_lock do
self.pool_string = pool_string.gsub(/(?:\A| )pool:#{pool.id}(?:\Z| )/, " ").strip