Example #1
0
 function _user_add_group_action()
 {
     $data = $this->posts('name', 'groupId');
     if (empty($data['name']) || empty($data['groupId'])) {
         throw new \Exception('firegit.error');
     }
     $api = new \firegit\app\mod\git\Reposite();
     $api->addUserGroup($data['name'], $data['groupId']);
 }