Merge pull request #1673 from aperrault/patch-04
Fixing neglect to determine whether a user has the permission to create ...
This commit is contained in:
+3
-1
@@ -244,7 +244,9 @@ class Guardian
|
||||
end
|
||||
|
||||
def can_create_topic?(parent)
|
||||
user && user.trust_level >= SiteSetting.min_trust_to_create_topic.to_i && can_create_post?(parent)
|
||||
user &&
|
||||
user.trust_level >= SiteSetting.min_trust_to_create_topic.to_i &&
|
||||
can_create_post?(parent)
|
||||
end
|
||||
|
||||
def can_create_topic_on_category?(category)
|
||||
|
||||
Reference in New Issue
Block a user