Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
On geeklog 1.6.0 and 1.6.0sr2 I try, in the group editor, to add a group to another group to give this group the same rights that those group have. But it seems to fail.

::Ben

I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Possibly related, in my function plugin_autoinstall_paypal my array to create groups is
Text Formatted Code

    $pi_name         = 'paypal';
    $pi_display_name = 'Paypal';
    $pi_admin        = $pi_display_name . ' Admin';
    $pi_user         = $pi_display_name . ' User';
    $pi_viewer       = $pi_display_name . ' Viewer';
       
    $info = array(
        'pi_name'         => $pi_name,
        'pi_display_name' => $pi_display_name,
        'pi_version'      => '1.0',
        'pi_gl_version'   => '1.6.0',
        'pi_homepage'     => 'http://www.geeklog.fr'
    );

    $groups = array(
        $pi_admin => 'Users in this group can administer the '
                     . $pi_display_name . ' plugin',
                $pi_user => 'Users in this group can access to the '
                     . $pi_display_name . ' plugin',
                $pi_viewer => 'Users in this group can view the '
                     . $pi_display_name . ' plugin'
    );

    $features = array(
        $pi_name . '.admin'    => 'Full access to ' . $pi_display_name
                                  . ' plugin',
        $pi_name . '.user'    => 'People who can shop with the ' . $pi_display_name
                                  . ' plugin',
        $pi_name . '.viewer'    => 'People who can browse (but not buy) with the ' . $pi_display_name
                                  . ' plugin',
    );

    $mappings = array(
        $pi_name . '.admin'     => array($pi_admin),
        $pi_name . '.user'     => array($pi_admin),            
        $pi_name . '.viewer'     => array($pi_admin),

        );

 


but only Paypal Admin group and the 3 features are created after the plugin install.

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Quote by: cordiste

On geeklog 1.6.0 and 1.6.0sr2 I try, in the group editor, to add a group to another group to give this group the same rights that those group have. But it seems to fail.


Works for me.

The Groups Editor had a facelift in 1.6.0. Could this be a themes-related issue?

bye, Dirk

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Quote by: cordiste

On geeklog 1.6.0 and 1.6.0sr2 I try, in the group editor, to add a group to another group to give this group the same rights that those group have. But it seems to fail.

::Ben



I made the test on the demo.geeklog.net with the professional theme. Confused:

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Hello,

Adding a group to another on geeklog1.6.1b1 is still not working for me. :banghead:

If i create a group call Test group and check All Users, All users are not adding to Test
And when I Check to allow filtering the Test group as an Admin Use Group the group disappears from the group list.

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Found it. That was a side effect of the above-mentioned facelift of the Group Editor in 1.6.0 (so it only affects 1.6.0 and 1.6.1b1).

bye, Dirk

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Cool it's working :shakehands:

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
...when I Check to allow filtering the Test group as an Admin Use Group the group disappears from the group list.


In gl_groups table, grp_gl_core to my Test group is set to 2 and I can see it no more...

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Quote by: cordiste

In gl_groups table, grp_gl_core to my Test group is set to 2 and I can see it no more...


That's a feature, not a bug (and not even a new one). In the Group List, click the "Show Admin Groups" checkbox, click "Submit", and it'll show up again.

bye, Dirk