Anytime I tick 'approve apply for role' users are automatically are able to 'apply for role'... but this is confusing for the users. I have users who can apply to be 'moderators' but 'moderators' still see the "apply for role" and I would like to remove the link there, since there are no other roles to apply for. Can I remove this somehow? Thanks in advance.

Comments

heather’s picture

maybe i could just hide the tab for people who have a role already? what should i add to the arguments in this section to check if a user has a role already?

if ($user->uid && arg(0) == 'user' && is_numeric(arg(1)) &&   ???   ) {
      $items[] = array(
        'path' => 'user/'. $user->uid .'/apply_for_role',
        'title' => t('Apply for role'),
        'callback' => 'apply_for_role_page',
        'access' => user_access('apply for role'),
        'type' => MENU_LOCAL_TASK,
      );
Soren Jones’s picture

Assigned: Unassigned » Soren Jones
Status: Active » Fixed

Heather,

Thanks! This is definitely a bug. I've just created a new release. It should be available shortly. Note that you will need top to reset your permissions for apply for role after upgrading to the new version.

Soren

P.S. It wouldn't be difficult to add an option where users with no roles to apply for don't see the apply for role tab. I'm swamped, but should be able to get to that over the weekend.

heather’s picture

Well, I think that if we can fix the first problem, then I this will "hide" the tab, won't it?

Oh I see... they're still going to see the tab. Hmm... yeah... Maybe I will take this to the general forum, since someone may know!

Thank you!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.