Hello!

While aiming at using fieldgroup_tabs, I had a look at my site just as an authenticated user... my nodes then showed the view AND workflow tab, while only views, and ... access is granted to them.

Would you know how to hide this tab to some roles?

Specs:
- MacMini Intel
- MacOS 10.5
- Opera 9.25 / Firefox 2.0.0.10
- MAMP pro server:
-> Apache 2 API Version 20020903
-> PHP/5.2.5
-> MySql 5.0.41

Comments

JacobSingh’s picture

Category: task » support

Sorry, I'm a little confused. Can you try to restate your issue with a little more detail?

doc2@drupalfr.org’s picture

Hi Jacob,

First excuse me if you felt I acted pretentious (the 'task' category of this post). Then sorry for my bad presentation. Please tell me whether I'm clear enough this time. Now let's go!

1- Sum up of my problem : my nodes (node view) show the workflow tab to any user of my site. As I want this workflow tab to show up only for some roles, I want it to be hidden from the others (unautheticated, authenticated with no specific role, etc.).

2- Possible cause of my problem : I noticed that there were no access control option on this workflow tab in my admin/user/access page. (The only options for workflow being administer and schedule, as far as I remember).

3- Lacking feature? I don't know if this is normal, but I thought that would have been a normal feature for a workflow module, that it be accessible or not to users according to their roles, especially on frontend pages (node view).

4- My case : Actually, someome who doesn't have the right to admin the workflow won't be able to modify it. But in my case indeed, a Document Management System with very restricted front end User Interface, I consider that any workflow info should be possibly hidden from the unpriviliged users.

5- A feature's reason to be : The unprivileged users representing most of them in my case, but I guess most cases, I thought this feature really was normal.

We may need some other users' point of view... is you think that's a pertinent remark.

6- Just a theming issue? or a new feature request? But then unfortunately, developping is beyond my competence (and from many drupalers' I guess).

This is it. Thank you for jumping in : )

Arsène


  • For info, I added that (Sorry *panels* was missing)
    Only views and *panels* access were granted to my authenticated users [who should not see the workflow tab displayed].
    because I thought that thoses access rights to those modules could have been a reason for the tab to show up, but I don't think so anymore.
doc2@drupalfr.org’s picture

Any answer about my problem (1)?

greggles’s picture

Status: Active » Fixed

If you visit example.com/admin/build/workflow/edit/WID you will see a section called "Workflow tab permissions" be sure that you are not allowing anonymous users to view the tab.

I tried to follow the steps you describe and was unable to make the workflow tab visible for anonymous users so I believe this is "fixed". If not, please start with steps to repeat the problem like this:

1. Using latest Drupal core and workflow module
2. Enable workflow module
3. Create a workflow with attributes like foo, bar, and baz
...etc...
Expected results:
Anonymous users do not see workflow tab

Actual results:
Anonymous users can see the workflow tab

It is valuable to create these steps based on a brand new site installed from scratch. Otherwise you will likely forget a detail which makes it impossible for others to repeat your problem.

doc2@drupalfr.org’s picture

Title: No access control on Workflow tab! » No access control on Workflow tab? Just get it there: admin/build/workflow/edit/WID
Status: Fixed » Closed (fixed)

Thank you very much. That was simple in fact. I'm deeply sorry for wasting your time. I didn't wish to.

The "problem" was just about setting up the "Workflow tab permissions" there: admin/build/workflow/edit/WID.

I completely missed it. Therefore I'm closing the issue and renaming it for helping the next scatterbrain users!

Regards.

greggles’s picture

No problem - glad to have helped.

Wappie08’s picture

Actually I've got a similar problem: I've got a workflow with action for an author/admin of a node (add to nodequeue).

So now the author/admin also sees the "Workflow" tab when viewing a node of this type.

But I do not want that as it serves no purpose.. Then tried to set workflow tab permissions (admin/build/workflow/edit/wid) to "dummyuser" (so noone sees it) but it is still showing to author/admin roles...

Anyone got a solution/workaround for this?

Greetings Wappie

tahiticlic’s picture

Same problem here, a bit more annoying since it's anonymous users who can see this tab, even if they have no right given in corresponding admin/build/workflow/edit/wid

greggles’s picture

Status: Closed (fixed) » Active

@Wappie08 and @cfab, Are you guys using 5.x-1.1 or a newer veresion?

tahiticlic’s picture

New one, last one for D6.

I had to uncheck all checkboxes in admin/build/workflow/edit/wid tab permissions in order to avoid the workflow tab to be shown to anonymous users.

greggles’s picture

Version: 5.x-1.1 » 6.x-1.3

Ok, well that seems like it might be the normal behavior.

tahiticlic’s picture

Well, what's the point in this case to have an "anonymous" choice in the checkboxes list if you have to uncheck all in order to avoid anonymous user to see these tabs?
Now, not only the anonymous users can't see the tabs but also authors, moderators, etc... That doesn't seem to be a good way to deal with the tabs problem.

greggles’s picture

Category: support » bug

Ok, I guess it's a bug.

supersteph’s picture

any updates on this? i'm seeing the same issue...

benjf’s picture

Note that this "bug" will appear if you allow node authors to view the workflow tab, and a node's author gets changed to Anonymous.

Hope that helps someone - this just accidentally happened to me and it wasn't clear initially what was going on.

spgd01’s picture

Version: 6.x-1.3 » 6.x-2.x-dev

Benjf Is correct. How can we fix this? For both 6.x and 7.x

johnv’s picture

This issue was fixed and closed in an earlier comment.
Th issue of Benjif and spgd1 is addressed in other issues like:
#2030325: Anonymous access
#437874: Every anonymous user has author role access to nodes with 'anonymous' author (D6)
#1100830: Disallow access to workflow history to anonymous users

johnv’s picture

Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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