How can a user with 'reset classified ad expiration' permission but without 'edit own classified ads' renew their ad?

drue - June 14, 2008 - 16:45
Project:Classified Ads
Version:5.x-1.5-8
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

dakotaroar - March 16, 2009 - 15:11

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.

 
 

Drupal is a registered trademark of Dries Buytaert.