order.yml
blueprint:
options:
status: false
url: false
delete: false
duplicate: false
preview: false
read:
*: false
admin: true
accounting: true
Order pages are created only when payment is completed.
So it is not created from the panel. So I didn’t let the status change.
But when the user creates the order from the frontend, I can’t change the status because the page is created as a draft.
Is there a solution to this? Like forcing it…
Tried to give permission to customer
role but failed again:
options:
status:
*: false
customer: true
url: false
delete: false
duplicate: false
preview: false
read:
*: false
admin: true
accounting: true
Frontend side:
$orderPage->changeStatus("unlisted");
The status for this page cannot be changed
Actually works with customer
permission. The reason it didn’t work was the impersonate method that used in other file:
kirby()->impersonate("kirby");
So will not work impersonate
and logged user session
together