Author: david Date: Thu Sep 10 10:43:30 2009 New Revision: 3218 Log: Add admin user to 'admin' aclGroup on installation.
Modified: trunk/plugins/sfInstallPlugin/modules/sfInstallPlugin/actions/configureSiteAction.class.php Modified: trunk/plugins/sfInstallPlugin/modules/sfInstallPlugin/actions/configureSiteAction.class.php ============================================================================== --- trunk/plugins/sfInstallPlugin/modules/sfInstallPlugin/actions/configureSiteAction.class.php Thu Sep 10 10:40:43 2009 (r3217) +++ trunk/plugins/sfInstallPlugin/modules/sfInstallPlugin/actions/configureSiteAction.class.php Thu Sep 10 10:43:30 2009 (r3218) @@ -1,6 +1,20 @@ <?php /* + * This file is part of Qubit Toolkit. + * + * Qubit Toolkit is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * Qubit Toolkit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Qubit Toolkit. If not, see <http://www.gnu.org/licenses/>. */ class sfInstallPluginConfigureSiteAction extends sfAction @@ -36,6 +50,11 @@ $relation->roleId = QubitRole::ADMINISTRATOR_ID; $relation->save(); + $aclUserGroup = new QubitAclUserGroup; + $aclUserGroup->userId = $user->id; + $aclUserGroup->groupId = QubitAclGroup::ADMINISTRATOR_ID; + $aclUserGroup->save(); + $this->redirect(array('module' => 'sfInstallPlugin', 'action' => 'finishInstall')); } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Qubit Toolkit Commits" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.ca/group/qubit-commits?hl=en -~----------~----~----~----~------~----~------~--~---
