Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When an order is canceled we need a conditional action for revoking any file access that order got from uc_file. Currently when an order is canceled the file access is not removed and there is no available action for setting up a ca to do that.
Comment | File | Size | Author |
---|---|---|---|
#3 | uc-file-revoke.patch | 6.3 KB | Jody Lynn |
#2 | revoke_access.patch | 6.29 KB | kleinmp |
Comments
Comment #1
rszrama CreditAttribution: rszrama commentedTagging.
Comment #2
kleinmp CreditAttribution: kleinmp commentedI made this patch for uc_file that revokes file access that was received from an order, if that order is cancelled. If the order is reinstated, then it renews file access. IT works nicely for the site we're working on, but it hasn't been tested for different file access configurations (such as file directories).
Comment #3
Jody LynnSlight bugfix for the above patch, to fix the drupal_set_message.
I tested and reviewed the patch but it is still not tested for file directory purchase, so leaving as 'needs review' for now.
Comment #4
Jody LynnComment #5
Island Usurper CreditAttribution: Island Usurper commentedWhy is $order_args removed, but not replaced in the notify_grant predicate?
Comment #6
rszrama CreditAttribution: rszrama commentedTagging.
Comment #7
itsmahitha CreditAttribution: itsmahitha commentedPatch is working and tested.
Comment #8
TR CreditAttribution: TR commentedComment #9
TR CreditAttribution: TR commented#676336: uc_file should revoke purchased files when an order is Canceled has some discussion of this issue, but is marked as a duplicate of this thread.
Comment #10
jtbayly CreditAttribution: jtbayly commentedsubscribe
Comment #11
longwaveChanging component.
Comment #13
TR CreditAttribution: TR commentedPatch is not in -p0 or -p1 format.
Comment #14
TR CreditAttribution: TR commented