# Authorization plugin problem

**URL:** <https://www.ruby-forum.com/t/authorization-plugin-problem/134909>\
**Category:** Rails\
**Created:** [April 16, 2008, 3:17am UTC](https://www.ruby-forum.com/t/authorization-plugin-problem/134909 "2008-04-16T03:17:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abusiek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/838e76/32.png) [@abusiek](https://www.ruby-forum.com/u/abusiek)\
**Post date:** [April 16, 2008, 3:17am UTC](https://www.ruby-forum.com/t/authorization-plugin-problem/134909/1 "2008-04-16T03:17:07Z")

</div>

Hi!

I’m using Rails 2.0.2 and i’ve install “authorization plugin”, Now  
when I write something like this:

```
  @project = Project.new(params[:project])
  if @project.save
    @manager = User.find(params[:project][:user_id])
    @manager.has_role "manager of :project", :project => @project

```

i’m getting error:

undefined method `base\_class’ for Hash:Class

vendor/plugins/authorization/lib/publishare/object\_roles\_table.rb:  
62:in `get_role' vendor/plugins/authorization/lib/publishare/object_roles_table.rb: 32:in`has\_role’  
app/controllers/projects\_controller.rb:21:in `save' app/controllers/projects_controller.rb:16:in`save’

Any ideas why?
