]> ruin.nu Git - ndwebbie.git/commitdiff
Add member access by default
authorMichael Andreen <harv@ruin.nu>
Sat, 6 Sep 2008 13:05:11 +0000 (15:05 +0200)
committerMichael Andreen <harv@ruin.nu>
Sat, 6 Sep 2008 13:05:11 +0000 (15:05 +0200)
lib/NDWeb/Controller/Raids.pm

index f9580e46fdb424d7ddb02dc9111aacd049e3fded..16ce6b508d715fdbb025032e677c3bf0735d24fb 100644 (file)
@@ -518,6 +518,8 @@ sub postcreate : Local {
                $addtarget->execute($raid,\@targets,\@gals,$c->req->param('sizelimit'));
                $c->forward('log',[$raid,"BC added planets (@targets) and the gals for (@gals)"]);
        }
+       $dbh->do(q{INSERT INTO raid_access (raid,gid) VALUES(?,2)}
+               ,undef,$raid);
        $dbh->commit;
 
        $c->res->redirect($c->uri_for('edit',$raid));