OpenEnergyPlatform / oeplatform

Repository for the code of the Open Energy Platform (OEP) website. The OEP provides an interface to the Open Energy Family
http://openenergyplatform.org/
GNU Affero General Public License v3.0
61 stars 19 forks source link

Scenario bundles: Access denied error for edit mode in create new #1576

Closed adelmemariani closed 4 months ago

adelmemariani commented 4 months ago

When we use the "create new" button to make a new bundle, we are in edit mode, but if we click the view button, we can not go back to the edit mode again. An error with "Access denied! You cannot edit scenario bundles that you do not own!" message prevents editing the new un-saved bundle

Solution

Disable the save and edit button until the bundle is saved!

Workflow checklist

jh-RLI commented 4 months ago

I noticed that too, thanks for pointing it out. This is because there is no entry in the database because the scenario bundle has not yet been created. We need a different status that indicates that the current scenario bundle is being created and avoids the access rights check.

adelmemariani commented 4 months ago

fixed!