• Resolved s31tech

    (@s31tech)


    I am wondering how to set a default owner/assignment for an uploaded file.

    The problem I am having is that if I set up a customer account, and then they go to upload a file, the default owner/Assignment of the file is “nobody” and they are able to successfully upload the files, but then can’t see it if they didn’t remember to set the owner manually to themselves on the upload.

    Is there any way to make it so that the assigned user is always the user who uploaded?

    • This topic was modified 8 years, 4 months ago by s31tech.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Vincent Mimoun-Prat

    (@vprat)

    We have an action triggered after the owner is saved. You could use that to detect whether an owner has been set and if not, set it to the proper owner:

    do_action("cuar/core/ownership/after-save-owner", $post_id, $post, $previous_owners, $new_owners)

    File src/php/core-addons/post-owner/post-owner-addon.class.php, line 591

Viewing 1 replies (of 1 total)
  • The topic ‘How do I set a Default Owner/Assignment?’ is closed to new replies.