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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user