Feng Forum

Support => Feng Office 3 => : icy February 09, 2015, 04:37:34 PM

: How to delete user group?
: icy February 09, 2015, 04:37:34 PM
Just upgraded from 2.6.3 to 3.0.6, but couldn't find a way to delete an old user group, using Chrome 40.0.2214.11.

Must be something obvious I am missing?
: Re: How to delete user group?
: hoggar February 09, 2015, 05:31:59 PM
Maybe you can use DELETE after you remove all relations to this group:

DELETE FROM DBname.fo_permission_groups WHERE name = 'GroupName';

 :)
: Re: How to delete user group?
: znitz February 12, 2015, 10:36:01 AM
Hi,

I also saw this.

I tried (as a workaround) to clear the name of a group.
This did not work, I ended up with an group without a name...

It feels like an obvious function to have, earlier version
did have this feature, both version 1.x and version 2.x

: Re: How to delete user group?
: znitz February 12, 2015, 12:49:18 PM
After some testings...

As a workaround, until development team solves it:

If you rightclick on the group you can copy the link to the group you want to remove
Now open a new tab in the browser, paste the link **before hitting enter** change the "a=edit" in the link to "a=delete"

Now you will get an errorpage, but if you look bit down in the text you can actually see that the group was removed
After this you can close this extra tab in the browser

One funny thing: If you now click on the group you just deleted, you will get information that the group does not exists, and then (in my case) you will see the old Group managing page...


I guess there is some kind of link/setting that is wrong in the new FO 3.x :)

: Re: How to delete user group?
: icy February 12, 2015, 04:30:36 PM
Right, I wait for the Dev to do their magic then.  ;D
: Re: How to delete user group?
: znitz February 12, 2015, 06:04:15 PM
I did some more "wild-n-crazy", I added a button so you can delete the group when you access it.

It's small patch in the file "FENG_ROOT/application/views/group/add.php line 21 (-isch)

Added these lines, and then when you manage the group you will have a delete button in the top

<?php
        if (!$group->isNew())   add_page_action(lang('delete'), "javascript:if(confirm('".lang('confirm delete permanently', array_var($group_data, 'name'))."')) og.openLink('".get_url('group', 'delete', array('id' => $group->getId(),'start' => true))."');", 'ico-delete', null, null, TRUE);
?>

There will be an error telling you that the group is gone... but for me it is ok until Feng office has better solution

- Cheers
: Re: How to delete user group?
: franponce87 March 19, 2015, 03:01:11 PM
Hah!  ::)

Looks like someone forgot that button :)

Already took note of it and passed it to the Dev Team, so expect it to be there in upcoming versions.

In the meantime you may remove the users from the group to get rid of their permissions.

Best regards,
Francisco