public function permission_update($id)
 {
     $rules = ['displayName' => 'Required|String|Max:250', 'name' => 'Required|AlphaNum|Min:3|Max:250', 'value' => 'Required'];
     $v = Validator::make(Input::all(), $rules);
     if ($v->passes()) {
         $perm = UserPermission::findOrFail($id);
         $perm->fill(Input::all());
         if (!$perm->save()) {
             Session::flash('site_notice', 'Error while saving!');
         }
     } else {
         Session::flash('errors', $v->getMessageBag());
     }
     return Redirect::back();
 }