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
Comment #1
JacobSingh commentedSorry, I'm a little confused. Can you try to restate your issue with a little more detail?
Comment #2
doc2@drupalfr.org commentedHi 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.
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
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.
Comment #3
doc2@drupalfr.org commentedAny answer about my problem (1)?
Comment #4
gregglesIf 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.
Comment #5
doc2@drupalfr.org commentedThank 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.
Comment #6
gregglesNo problem - glad to have helped.
Comment #7
Wappie08 commentedActually 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
Comment #8
tahiticlic commentedSame 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
Comment #9
greggles@Wappie08 and @cfab, Are you guys using 5.x-1.1 or a newer veresion?
Comment #10
tahiticlic commentedNew 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.
Comment #11
gregglesOk, well that seems like it might be the normal behavior.
Comment #12
tahiticlic commentedWell, 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.
Comment #13
gregglesOk, I guess it's a bug.
Comment #14
supersteph commentedany updates on this? i'm seeing the same issue...
Comment #15
benjf commentedNote 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.
Comment #16
spgd01 commentedBenjf Is correct. How can we fix this? For both 6.x and 7.x
Comment #17
johnvThis 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
Comment #18
johnv