Cheers,

I am implementing paid ads using ubercart - in order for a user's ad to become published, they must pay. To accomplish this, the users don't have the edit permission (and thus can not set their ad to published).

This works great - but it appears that even though ed_classifieds provides a 'reset classified ad expiration' permission, the user still must have the 'edit own classified ads' to renew their expiration. I believe that if a user has 'reset classified ad expiration', they should not need 'edit own classified ads' permission.

Please let me know if this is an easy fix, to provide a function to renew an ad, without being able to edit one's ad.

Note that I believe this isn't an issue in drupal 6, where I believe there is a separate publish permission from an edit permission.

Thanks,
drue

Comments

mattbk’s picture

I know this probably won't help you, but I used Rules to set up classifieds that automatically expire and unpublish. I then created a rule that would publish the ad (if unpublished) when it was viewed. Since I also had it set up that only the ad owner could view their own unpublished ads, all the person has to do to republish something is to view it through a View that I built to list their ads.

fgm’s picture

Status: Active » Fixed

In 5.x/6.2, the "reset classified ad expiration" permission is needed in addition to the "edit own/any permission" to modify the ad expiration when editing it. It is of no use on its own.

An easy fix would be to add a small module of your own performing this expiration reset as an additional tab on the module page, like node/(nid)/classified-reset, and control it with that permission.

@darkotaroar's solution works too.

Status: Fixed » Closed (fixed)

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