User Role Management

11 views
Skip to first unread message

Anu

unread,
Feb 9, 2012, 1:14:22 AM2/9/12
to Devise, Anurags...@gmail.com
I am creating application which requires User management of various
levels for authorization of different level of users.

I want several models:
Admin_user
Project Manager
Company
Clients
Account : have many users of all level.Every user have account.

See below the relations between our models:

1. Admin_user : have many project managers and can give rights to
project manager.It can add and delete Project managers.Admin can
access or manage any level of this application i.e. Its a SUPER USER.

2.Project manager : have many companies.It can create and delete many
companies. Project Manager can also add new project manager if
Admin_user give right to him to create new project manager.its all
depends on Admin_user to give or take rights from PM.

3. Companies : can create and delete many client_users but cannot
create any company in th same level.Company also start or stop rights
of client.

4.Client :can have account login and use services provided by company
nothing more than that.

This is my model Association. But i m confused what can i make first a
Account model or a Admin_user model.


Thanks

Anu

unread,
Feb 17, 2012, 1:14:54 AM2/17/12
to Devise
Can anyone respond to that.plz



On Feb 9, 11:14 am, Anu <anushank...@gmail.com> wrote:
> I am creating application which requiresUsermanagementof various
> levels for authorization of different level of users.
>
> I want several models:
> Admin_user
> Project Manager
> Company
> Clients
> Account : have many users of all level.Everyuserhave account.

Nick Hoffman

unread,
Feb 21, 2012, 10:32:05 AM2/21/12
to plataforma...@googlegroups.com
Hi Anu. If a user requires an account, then clearly an account needs to exist before a user can be created.
Reply all
Reply to author
Forward
0 new messages