From 7010633672f036e8f1bb0ebb9cfa57fb88c35b2c Mon Sep 17 00:00:00 2001 From: Sergey Pariev Date: Wed, 18 Sep 2013 15:09:27 +0300 Subject: [PATCH] fix typo in role name --- README.rdoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rdoc b/README.rdoc index 507e1e7..32e8984 100644 --- a/README.rdoc +++ b/README.rdoc @@ -78,9 +78,9 @@ After that, acl object becomes accessible via YaAcl::Acl.instance. acl = YaAcl::Acl.instance - acl.allow?('UserController', :index, [:editor, :opeartor]) # true - acl.allow?('UserController', :edit, [:editor, :opeartor]) # true - acl.allow?('UserController', :edit, [:opeartor]) # false + acl.allow?('UserController', :index, [:editor, :operator]) # true + acl.allow?('UserController', :edit, [:editor, :operator]) # true + acl.allow?('UserController', :edit, [:operator]) # false acl.allow?('UserController', :new, [:admin], :current_user_id => 1, :another_user_id => 1) # true acl.allow?('UserController', :new, [:editor], :current_user_id => 1, :another_user_id => 2) # false