This commit is contained in:
Manish Verma
2016-12-13 18:18:25 +05:30
parent fc98add11c
commit 2d8e640e9b
2314 changed files with 97798 additions and 75664 deletions

View File

@@ -124,6 +124,10 @@ class GroupController extends Controller
{
// Database instannce to the current id
$var = $group->whereId($id)->first();
$is_group_assigned = User::select('id')->where('assign_group', '=', $id)->count();
if ($is_group_assigned >= 1 && $request->input('group_status') == '0') {
return redirect('groups')->with('fails', Lang::get('lang.group_can_not_update').'<li>'.Lang::get('lang.can-not-inactive-group').'</li>');
}
// Updating Name
$var->name = $request->input('name');
//Updating Status