Navigation Menu

Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

Commit

Permalink
Fixes #19 the group type is not correct when creating a new one.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai-vlc committed Mar 13, 2016
1 parent a3b79f7 commit 3d9549d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions admin/groups.php
Expand Up @@ -45,6 +45,10 @@

$editable = 0; // based on this we determine if it's a default group or not

if ($act == 'add') {
$editable = 1;
}

if(($act == 'edit') && ($group = $db->getRow("SELECT * FROM `".MLS_PREFIX."groups` WHERE `groupid` = ?i", $_GET['id'])))
if($group->groupid > 4)
$editable = 1;
Expand Down

0 comments on commit 3d9549d

Please sign in to comment.