<p>You should be able to edit that entry using <code>craft()-&gt;entries-&gt;saveEntry($entry)</code> with <code>$entry-&gt;authorId</code> set to a registered user with the necessary permissions. To get the ID of the user that created the entry, access the Guest Entries plugin settings in your plugin:</p>

<pre><code>$settings = craft()-&gt;plugins-&gt;getPlugin('guestentries')-&gt;getSettings();
$authorId = $settings-&gt;defaultAuthors[$entry-&gt;section-&gt;handle];
</code></pre>

CC BY-SA 3.0
2014-12-09T10:50:47.537Z
2014-12-09T11:00:53.497Z
2014-12-09T11:00:53.497Z
carlcs
<p>I'm working on a checkout process for a takeaway restaurant where anonymous visitors can place orders using guest entries.</p>

<p>In this stage the order is saved with a status of "unpaid". Once a visitor saves the order he's taken to a payment provider service where he pays for his order, once the order is payed the visitor is redirected to a page where the order status would be set to "paid" in a hidden form.</p>

<p>In order to accomplish this the aforementioned saved guest entry would have to be edited from the front-end. Is it possible to anonymously edit an entry?</p>

CC BY-SA 3.0
2014-12-08T21:28:27.170Z
You may need to provide us with more details. i.e. Does the guest user submit a form? What action should trigger the update? What specifically are you trying to update? etc.
Douglas McDonald
<entries><entry><guest-entries>
is it possible to edit an entry from the front-end when you're not logged in?
# is it possible to edit an entry from the front-end when you're not logged in?

(Asked by: username_0 on 2014-12-08)

I'm working on a checkout process for a takeaway restaurant where anonymous visitors can place orders using guest entries.

In this stage the order is saved with a status of "unpaid". Once a visitor saves the order he's taken to a payment provider service where he pays for his order, once the order is payed the visitor is redirected to a page where the order status would be set to "paid" in a hidden form.

In order to accomplish this the aforementioned saved guest entry would have to be edited from the front-end. Is it possible to anonymously edit an entry?

**Tags:** entries, entry, guest-entries

> **Comments:**
> **username_1**: You may need to provide us with more details. i.e. Does the guest user submit a form? What action should trigger the update? What specifically are you trying to update? etc.  

---

## 1 answers

### Answer by username_2 on 2014-12-09. Score: 2

You should be able to edit that entry using craft()->entries->saveEntry($entry) with $entry->authorId set to a registered user with the necessary permissions. To get the ID of the user that created the entry, access the Guest Entries plugin settings in your plugin:
$settings = craft()->plugins->getPlugin('guestentries')->getSettings();
$authorId = $settings->defaultAuthors[$entry->section->handle];


---

