Skip to content

Commit 7010633

Browse files
committed
fix typo in role name
1 parent 6180daf commit 7010633

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rdoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ After that, acl object becomes accessible via YaAcl::Acl.instance.
7878

7979
acl = YaAcl::Acl.instance
8080

81-
acl.allow?('UserController', :index, [:editor, :opeartor]) # true
82-
acl.allow?('UserController', :edit, [:editor, :opeartor]) # true
83-
acl.allow?('UserController', :edit, [:opeartor]) # false
81+
acl.allow?('UserController', :index, [:editor, :operator]) # true
82+
acl.allow?('UserController', :edit, [:editor, :operator]) # true
83+
acl.allow?('UserController', :edit, [:operator]) # false
8484
acl.allow?('UserController', :new, [:admin], :current_user_id => 1, :another_user_id => 1) # true
8585
acl.allow?('UserController', :new, [:editor], :current_user_id => 1, :another_user_id => 2) # false
8686

0 commit comments

Comments
 (0)