mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
work in progress, add fidelity to category group permissions (full, create posts, readonly)
This commit is contained in:
@@ -68,7 +68,7 @@ describe UserAction do
|
||||
|
||||
# groups
|
||||
|
||||
category = Fabricate(:category, secure: true)
|
||||
category = Fabricate(:category, read_restricted: true)
|
||||
|
||||
public_topic.recover!
|
||||
public_topic.category = category
|
||||
@@ -82,7 +82,7 @@ describe UserAction do
|
||||
group.add(u)
|
||||
group.save
|
||||
|
||||
category.allow(group)
|
||||
category.set_permissions(group => :full)
|
||||
category.save
|
||||
|
||||
stats_for_user(u).should == [UserAction::NEW_TOPIC]
|
||||
|
||||
Reference in New Issue
Block a user