Closed (cannot reproduce)
Project:
Custom Contextual Links
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Nov 2011 at 12:38 UTC
Updated:
14 Oct 2012 at 06:12 UTC
I have tried to add a contextual link:
node/[node:nid]/delete
added to nodes with the content type story. However, I does not show up - not even after clearing the cache several times. I suspect it has something to do with workbench_moderation to do? Have you encountered this problem?
Comments
Comment #1
bkoether commentedHi lsolesen,
The module does go through an access control check before it adds the link. So if your user account does not have the permissions to delete the nodes it should not be rendered. I have not tried it in connection with Workbench yet.
Do you have a specific workflow set up in Workbench when it comes to deleting nodes?
Comment #2
lsolesen commentedNo. and i am administrator.
Comment #3
bkoether commentedOk, I will look into it this week.
Comment #4
bkoether commentedHi lsolesen,
sorry, but I was not able to reproduce this error.
One thing that I might not fully understand is why you would want to add a delete link through CCL. The delete link is a default contextual link that will be displayed on nodes. If your account, for whatever reasons, does not have permissions to delete a node, the default link as well as the custom version you created would not show up.
Comment #5
lsolesen commentedI have never seen delete as a default contextual link, but I will investigate that further. I am the administrator of the site, where I am trying to add the contextual link in conjunction with workbench_moderation, and I only have the following links being on the node:
- View Draft
- Edit Draft
- Moderate
When published I will have other options, but not the delete link.
Delete node/%nid/delete node Indholdstype: Story <-- added like this.
Comment #6
bkoether commentedHi lsolesen,
the only thing I can see is that your setup for some reason doesn't allow for direct deletion of nodes or that your role just doesn't have access to it.
The CCL module performs an access check for every link in order to make sure only links are displayed that a user actually has access to.
I tried it out with workbench moderation and was able to add the delete link without any issues.
Comment #7
lsolesen commentedI can access node/xxx/delete when just typing it into the browser. But it is not visible in the contextual links on the individual node.
Comment #8
clare-ux commentedI have a similar issue as #7. I do not see the default "new draft" or "edit draft" in the contextual links for a particular role, however when I enter the edit URL in the browser I have no problems. I didn't used to have issues, wondering if it has something to do with an update somewhere?
Comment #9
bkoether commentedI double checked again today with the latest dev version of CCL and the latest Workbench version and I'm not able to reproduce this behaviour.
I will close this ticket for now.
Comment #9.0
bkoether commentedThat is how the link is created.