Hi all,

I have the necessity to assign ucreate permission (like "assign user roles" or "create users") to users with specific OG_user_roles (OGUR) roles that are different from CORE roles.

A user might have a "moderator" OGUR role but not the same "moderator" CORE role assigned: in this case ucreate permission doesn't works.

Thank you very much for your work

MXT

Comments

mxt’s picture

No answers yet?

sun’s picture

assign ucreate permission [...] to users with specific OG_user_roles (OGUR) roles that are different from CORE roles.

I think I already explained elsewhere that there are no "different" roles. I'm not sure who or where or what made you believe that there is a difference, but the fact is, there is no difference.

There are the regular, plain, usual, normal, standard Drupal core user roles only. With or without og_user_roles module being installed.

You can just call them "user roles", because there are only one kind of user roles, and that's the user roles in Drupal core. They are the same, the identical thing, because there is no other or different thing. There is nothing aside, and there can only be one.

OGUR does not introduce new, other, or different user roles. It also does not duplicate user roles in anyway. OGUR just simply grants further user roles to the currently logged in user depending on the organic groups context -- if there is one. If there is one, and the group context grants the user further (core) user roles, then the current user dynamically gets more permissions, which are only applied for the current request. If, however, there is no group context, then the user won't get any additional user roles. Dead simple.

Most likely, this issue won't fix.

mxt’s picture

Sun, be patient please ;-)

I really understand elsewhere that OGUR roles are applied runtime and aren't additional roles and so on... Ok? I understand it.

If I wrote "that are different from core roles" is a simplification, only because i try to explain more clearly possible the issue and only to put in evidence that core roles check box have to be leave empty in admin user management pages (OGUR want this to work correctly) and roles have to be assigned only through OGUR interface at group level. Sorry, English is not may native language so writing like above I really intend only to be clear as much as possible.

NOW, about this issue: the problem is alway the same I described in other posts: there can be situations where a user can't be under a OG context, or OG context can't be kept, e.g. views pages, common "site-wide" pages and so on. In these cases OGUR can't assign roles... So I asked elsewhere if there is a way to retrieve or to invoke (with a "top" php script or a session variable, I don't know what) acting user's group context (note: in my site a user can belong to only and only one group), but nobody seems to be able to help me. In these months (yes: months and months) I asked everywhere, tried different ways rebuilding the entire project from scratch (first with OG, then with domain module, then using Context or Spaces modules to try to keep OG context) but there was ALWAYS at the end something that doesn't work.

The best results I've reached is using OG and OGUR, but there is ONLY this "small" issue described above (and above all here http://drupal.org/node/737292 where I also I wrote a STEP by STEP from scratch to describe my configuration) that block my efforts.

The ridiculous thing (i think) is that I'm not "asking the moon" for my site configuration (described also here: http://drupal.org/node/742676#comment-2855062 ) but I'm starting thinking that a "so simple" site architecture can't be obtained with Drupal.

Please: someone can help me? I'm REALLY desperate.

Thank you and sorry if I give vent to my desperation.

MXT