authorizations on a module

Hi,

i have 3 modules.

every module correspond to a role in the auth system.

I would like to check the access to an entire module if the user has its role.

The solution i found is to check with filters in controllers of the module, but if I have more controllers in the module is tedious do this check in every controller.

Is there a solution to accomplish this at Module level? (for example in the main class that extends CWebModule)

I think you could check the access in the init() method of your module class.

that's right.

but is something custom and the question was if is it a good idea to have filters also in module level for you. (filters in CWebModule)

what do you think?

I'm not sure if we need filters for module or not since the module itself doesn't produce output.

i'll accomplish this task at init. if filters will be supported at module level i'll change this later.

In my opinion when you say in doc "Some commonly used features, such as user management, comment management, may be developed in terms of modules" it is something related to the module level not the controllers into it.

And this is good! that's way I have roles in my rbac related to the modules and i thought natural to found filters at module level.

That's my opinion, others have some ideas about this feature?