[BUG]: Not Authorized error when trying to access edit views for: (site views, Templates and layouts) #1266

Closed
opened 2025-10-28 08:14:17 +00:00 by Oh · 3 comments

What Happened?

Getting below error message (when trying to access edit views for: [site views, templates & layouts]) after upgrade to JCB v5.1.4-alpha3 & v6.1.4-alpha3

Screenshot from 2025-10-28 09-36-11.png

Screenshot from 2025-10-28 09-41-35.png

Steps to reproduce the Bug

  1. Upgrade to JCB v5.1.4-alpha3 & v6.1.4-alpha3
  2. Try accessing edit views for: site views, templates & layout
  3. System redirects you with Not authorised error message!

Which Joomla version are you compiling in?

v5.4 & v6.0

Which PHP version are you compiling in?

v8.3.26

Which Joomla versions are you targeting?

v5.4 & v6.0

Which PHP version are you targeting?

v8.3.26

Which Web server is JCB running on?

Apache 2.4

Which Relational Database is JCB running on?

11.3.2-MariaDB-1:11.3.2+maria~ubu2204

Which OS is JCB running on?

Ubuntu 24.04

Which JCB version are you using?

v5.1.4-alpha3 & v6.1.4-alpha3

Where in JCB did this issue occur?

Site Views(admin_views), Templates(admin_views), Layouts(admin_views)

On which browsers did you encounter the issue?

Firefox

Additional Comments

No response

### What Happened? Getting below error message (when trying to access edit views for: [site views, templates & layouts]) after upgrade to JCB v5.1.4-alpha3 & v6.1.4-alpha3 ![Screenshot from 2025-10-28 09-36-11.png](/attachments/49fd43a1-5ec6-4c47-8821-5c4a7dd18a2b) ![Screenshot from 2025-10-28 09-41-35.png](/attachments/f161a342-f69d-4db3-9834-01780abaa7d5) ### Steps to reproduce the Bug 1. Upgrade to JCB v5.1.4-alpha3 & v6.1.4-alpha3 2. Try accessing edit views for: site views, templates & layout 3. System redirects you with `Not authorised` error message! ### Which Joomla version are you compiling in? v5.4 & v6.0 ### Which PHP version are you compiling in? v8.3.26 ### Which Joomla versions are you targeting? v5.4 & v6.0 ### Which PHP version are you targeting? v8.3.26 ### Which Web server is JCB running on? Apache 2.4 ### Which Relational Database is JCB running on? 11.3.2-MariaDB-1:11.3.2+maria~ubu2204 ### Which OS is JCB running on? Ubuntu 24.04 ### Which JCB version are you using? v5.1.4-alpha3 & v6.1.4-alpha3 ### Where in JCB did this issue occur? Site Views(admin_views), Templates(admin_views), Layouts(admin_views) ### On which browsers did you encounter the issue? Firefox ### Additional Comments _No response_
Oh added the Bug label 2025-10-28 08:14:17 +00:00
Owner

@ohrionmartin we have picked up this issue and will release the fix soon.

For now to fix this you will have to update this line in the Model allowEdit function: Site_viewModel.php line 757
with:

// Since there is no permission given, core edit must be checked.
return $user->authorise('core.edit', $this->option);

This will be the same for layouts and templates.

@ohrionmartin we have picked up this issue and will release the fix soon. For now to fix this you will have to update this line in the Model `allowEdit` function: [Site_viewModel.php line 757](https://git.vdm.dev/joomla/Component-Builder/src/commit/787aac2bdcb35d16f3d5543aa8cc7cfaeab577e5/admin/src/Model/Site_viewModel.php#L757) with: ``` // Since there is no permission given, core edit must be checked. return $user->authorise('core.edit', $this->option); ``` This will be the same for layouts and templates.
Author

Performed the quick fix and it now works, thank you!

Performed the quick fix and it now works, thank you!
Robot referenced this issue from a commit 2025-10-28 18:55:05 +00:00
Owner

@ohrionmartin Please update your JCB to the latest alpha4 release and it should resolve this issue not only for JCB but also for the components built with JCB.

@ohrionmartin Please update your JCB to the latest alpha4 release and it should resolve this issue not only for JCB but also for the components built with JCB.
Robot referenced this issue from a commit 2026-02-18 14:57:04 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1266