Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis 5.5 Calypso supports 2 factor authentication login with e-mail or SMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Security
»
Backend Group
« previous
next »
Print
Pages: [
1
]
Author
Topic: Backend Group (Read 10878 times)
epaz
Newbie
Posts: 29
Re-inventing the wheel may lead to a round one!
Backend Group
«
on:
May 16, 2008, 14:37:15 »
Hi, I want to add a new group with backend access parallel to the already existing "Manager" group. This action is permitted by the Exlis engine but when I add a new user assigned with this particular group and try to save I get a "Forbiden user group" error and the user fails to be saved.
What is the correct way to achieve such a task?
Logged
owl
Jr. Member
Posts: 56
Re: Backend Group
«
Reply #1 on:
August 29, 2008, 12:38:06 »
Same here...
Logged
ks-net
Elxis Community
Hero Member
Posts: 2072
Kostas Stathopoulos
Re: Backend Group
«
Reply #2 on:
August 29, 2008, 14:01:45 »
same for me...
i have posted it at
https://forum.elxis.org/index.php?topic=2411.msg14326#msg14326
(greek-forum)
someone to help?
«
Last Edit: August 29, 2008, 14:03:22 by ks-net
»
Logged
ks-net.gr
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Backend Group
«
Reply #3 on:
August 30, 2008, 12:30:21 »
I check it right now and I will answer to you soon.
EDIT:
I found the problem. This happens because the user belongs to a different ACL branch. It can be fixed easily, but please wait a little more to find a better (permanent) solution.
«
Last Edit: August 30, 2008, 13:10:46 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Backend Group
«
Reply #4 on:
August 30, 2008, 13:59:39 »
Here is how to fix this issue on Elxis 2008.0 (no need for Elxis 2008.1).
* Open
includes/Core/elxis.php
with a text editor such as PsPad.
* Go to
line 456
(function backGroups) and change this:
$allbgroups = $acl->get_group_parents( '25', 'ARO', 'RECURSE_INCL' );
to this:
$allbgroups = $acl->get_group_children( '30', 'ARO', 'RECURSE' );
* Go to line 495 (function allowedGroups) and change this:
/** if user belongs to a backend group he can access all items for frontend groups **/
if (in_array($groupid, $this->backGroups())) {
$allowedgroups = $this->frontGroups();
}
$mygroups = $acl->get_group_parents( $groupid, 'ARO', 'RECURSE_INCL' );
to this:
$backgroups = $this->backGroups();
/** if user belongs to a backend group he can access all items for frontend groups **/
if (in_array($groupid, $backgroups)) {
$allowedgroups = $this->frontGroups();
if ($groupid == 25) {
$mygroups = $backgroups;
array_push($mygroups, '30');
} else if ($groupid == 24) {
$mygroups = array();
foreach ($backgroups as $backgroup) {
if ($backgroup != '25') { $mygroups[] = $backgroup; }
}
array_push($mygroups, '30');
} else {
$mygroups = $acl->get_group_parents( $groupid, 'ARO', 'RECURSE_INCL' );
}
} else {
$mygroups = $acl->get_group_parents( $groupid, 'ARO', 'RECURSE_INCL' );
}
* Save the file. Logout and re-login to update your session. Now the addition of a user to the new group should work fine.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Security
»
Backend Group