Hi there, i have read previous issues regarding this matter, but i didnt see a solution to it. I have created a view listing various ads from the current user, and it should have displayed the publish link too, with no result.

It there any patch for this or something?

Comments

maryts23’s picture

Status: Closed (duplicate) » Active
malaussene’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +views

Hi maryts23,

Sorry but I was not able to reproduce your issue.

Did you add the Publish Link field in your view like here?

malaussene

maryts23’s picture

Hi malaussene,

thanks for replying. I actually have added the "Publish link" field in my view but it does not display when i put permissions such as "publish own ". if i check "publish "all" content", it does appear. but the point is, a user should "publish/unpublish" their own content, not someone elses.

I just don't understand why it doesn't work!!

Taz’s picture

Status: Postponed (maintainer needs more info) » Active

I also have this user. When logged in as a normal user with an 'authenticated role', and given that user has the ability to only publish/unpublish their OWN content as per the permissions, it doesn't display in views.

Does display for user 1, but that speaks for itself.

malaussene’s picture

Assigned: Unassigned » malaussene
Status: Active » Fixed

Hi maryts23 and Taz,

it should be fixed now in CVS DRUPAL-6--1, should be in the dev package by tomorrow.
You should probably clean the views cache, and if it is not enough he all cache.

please let me know if the fixes work for you.

kmalaussene

Taz’s picture

Ah, I just found the problem myself and was about to submit a patch!

I found the problem in the views handler, the fake $node not having the uid set.

Status: Fixed » Closed (fixed)
Issue tags: -views

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