Although I have set no permissions to anonymous users for both casetracker and casetracker_basic modules the Case Tracker entry still shows up in the main navigation menu. And I think it should only be visible for users with the proper rights.

I know this module does not provide any privacy settings for projects or cases, I have content access (http://drupal.org/project/content_access) for that and it works as intended.

Comments

clemens.tolboom’s picture

This is due to a bug in the defined views in casetracker.views_default.inc

They should contain 'access case tracker' permissions

$handler->override_option('access', array(
  'type' => 'perm',
  'perm' => 'access case tracker',
));

Editing the view accordingly will solve this menu problem.

castawaybcn’s picture

thanks for the input Clemens,
should this be added around line 52? Or should this lines substitute others?

eswary’s picture

Hi,

In drupal 6, can't see views_default.inc, clemens.tolboom can you specify the file where the override should be done?
castawaybcn, what did you finaly done?
I've got only a views.inc.

thanks you!

Sam Ramachandra

castawaybcn’s picture

@eswary
I didn't do much actually, while waiting for clemen's answer I just disabled the navigation menu block for those users who don't have access to it...

clemens.tolboom’s picture

Hmmm ... missed the issue ...

What I meant with #1 is edit the view by adding access control to it. I pasted the exported views snippet :)

Does this help?

castawaybcn’s picture

Yep, it does. After changing the view's access control to the appropriate roles everything works just fine. I feel rather silly of not having thought of that...

clemens.tolboom’s picture

:p ... so this issue is fixed?

castawaybcn’s picture

Component: Code » Documentation
Category: bug » support
Status: Active » Fixed

not a bug but a documentation/support issue imho, marking as closed too.

Status: Fixed » Closed (fixed)

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