* Mon May 05 2025 Brian Read <brianr@koozali.org> 11.0.0-83.sme
- Mod to SrvMngr-Auth to account for partials matching AdminPanels options
This commit is contained in:
parent
dbfeaa18a3
commit
2538ac9ea0
2
clog
2
clog
@ -1,2 +0,0 @@
|
|||||||
* Thu May 01 2025 Brian Read <brianr@koozali.org> 11.0.0-81.sme
|
|
||||||
- Correct Weights for menus [SME: 12996]
|
|
@ -69,7 +69,8 @@ sub has_panel_access {
|
|||||||
|
|
||||||
# Check if requested panel is in allowed panels
|
# Check if requested panel is in allowed panels
|
||||||
foreach my $allowed_panel (@{$auth_info->{allowed_panels}}) {
|
foreach my $allowed_panel (@{$auth_info->{allowed_panels}}) {
|
||||||
return 1 if $panel eq lc($allowed_panel); #Controller files are capitalised, but that is lost in panel id.
|
return 1 if lc($panel) eq lc($allowed_panel)
|
||||||
|
|| lc(substr($panel, 0, length($allowed_panel))) eq lc($allowed_panel);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -2,7 +2,7 @@ Summary: Sme server navigation module : manager 2
|
|||||||
%define name smeserver-manager
|
%define name smeserver-manager
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
%define version 11.0.0
|
%define version 11.0.0
|
||||||
%define release 82
|
%define release 83
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}%{?dist}
|
Release: %{release}%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
@ -143,6 +143,9 @@ true
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 05 2025 Brian Read <brianr@koozali.org> 11.0.0-83.sme
|
||||||
|
- Mod to SrvMngr-Auth to account for partials matching AdminPanels options
|
||||||
|
|
||||||
* Thu May 01 2025 Brian Read <brianr@koozali.org> 11.0.0-82.sme
|
* Thu May 01 2025 Brian Read <brianr@koozali.org> 11.0.0-82.sme
|
||||||
- Correct Weights for menus [SME: 12996]
|
- Correct Weights for menus [SME: 12996]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user