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
Steps to reproduce the Bug
Upgrade to JCB v5.1.4-alpha3 & v6.1.4-alpha3
Try accessing edit views for: site views, templates & layout
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


### 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_
@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.
@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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
Steps to reproduce the Bug
Not authorisederror 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
@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
allowEditfunction: Site_viewModel.php line 757with:
This will be the same for layouts and templates.
Performed the quick fix and it now works, thank you!
@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.