Hi what i need is to set a role for all the members of an organic group, but the role must be a global role of the site, i do not need just a group role... for example:

group 1 => assigned role => role 1

With this all the members of group 1 should have the "role 1" role, the permissions of this role must work in all the site, not just in the group.

and if i have other

group 2 => assigned role => role 2

The same, role 2 must be a global role.

Any idea?

Comments

sadashiv’s picture

Hi @ssoulless,

If we want the role to work with entire site then we may need a drupal role and not a og role as og roles are restricted to permissions of og.

You can create a rule using rules module to add a role to user on event "user subscribed to group".

Do you mean that whenever a new group is created a new role should be created in drupal and then the members should get assigned that role? I such case the roles on drupal site will be growing as you create a group.

Thanks,
Sadashiv.

ssoulless’s picture

No No thats right, i just need to set a global role for the members of a group, is for the rules of my paid system, if the owner of the group pays all the members of that group would get the "premium role" so they can enjoy their features, but if the owner of the group does not pay, all the members of that group would have the "free role", with limited permissions.

Rules does not work for me because i have to make one rule per group, or when the owner of a group pays i have to manually add the condition to the rule...

how i need it, is in the settings of the Organic Group an option for example "Global role", and tell to drupal the role i want to give to the suscribers of that specific group. Well the method below is a manual way, but i could make a way to give to the organic groups a status for know if they pay or not, then i can automatically give the role to the users depending of the group status.

Well i could automate the proces below if there was a code base, but there is not one.

So im developing my own module for this purpose, but if you know some module that already exists PLEASE tell me about it, because i would like to save me the hard work.

Greetings and thanks for your interest