Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
GroupsDefaultDataMaker.php
1 <?php
2  /*********************************************************************************
3  * Zurmo is a customer relationship management program developed by
4  * Zurmo, Inc. Copyright (C) 2017 Zurmo Inc.
5  *
6  * Zurmo is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License version 3 as published by the
8  * Free Software Foundation with the addition of the following permission added
9  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10  * IN WHICH THE COPYRIGHT IS OWNED BY ZURMO, ZURMO DISCLAIMS THE WARRANTY
11  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12  *
13  * Zurmo is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Affero General Public License along with
19  * this program; if not, see http://www.gnu.org/licenses or write to the Free
20  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA.
22  *
23  * You can contact Zurmo, Inc. with a mailing address at 27 North Wacker Drive
24  * Suite 370 Chicago, IL 60606. or at email address contact@zurmo.com.
25  *
26  * The interactive user interfaces in original and modified versions
27  * of this program must display Appropriate Legal Notices, as required under
28  * Section 5 of the GNU Affero General Public License version 3.
29  *
30  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31  * these Appropriate Legal Notices must retain the display of the Zurmo
32  * logo and Zurmo copyright notice. If the display of the logo is not reasonably
33  * feasible for technical reasons, the Appropriate Legal Notices must display the words
34  * "Copyright Zurmo Inc. 2017. All rights reserved".
35  ********************************************************************************/
36 
41  {
42  public function make()
43  {
44  $everyone = Group::getByName(Group::EVERYONE_GROUP_NAME);
45  $everyone->setRight('UsersModule', UsersModule::RIGHT_LOGIN_VIA_WEB);
46  $everyone->setRight('UsersModule', UsersModule::RIGHT_LOGIN_VIA_MOBILE);
47  $everyone->setRight('UsersModule', UsersModule::RIGHT_LOGIN_VIA_WEB_API);
48  $everyone->setRight('AccountsModule', AccountsModule::RIGHT_ACCESS_ACCOUNTS, Right::ALLOW);
49  $everyone->setRight('AccountsModule', AccountsModule::RIGHT_CREATE_ACCOUNTS, Right::ALLOW);
50  $everyone->setRight('AccountsModule', AccountsModule::RIGHT_DELETE_ACCOUNTS, Right::ALLOW);
51  $everyone->setRight('CampaignsModule', CampaignsModule::RIGHT_ACCESS_CAMPAIGNS, Right::ALLOW);
52  $everyone->setRight('CampaignsModule', CampaignsModule::RIGHT_CREATE_CAMPAIGNS, Right::ALLOW);
53  $everyone->setRight('CampaignsModule', CampaignsModule::RIGHT_DELETE_CAMPAIGNS, Right::ALLOW);
54  $everyone->setRight('ContactsModule', ContactsModule::RIGHT_ACCESS_CONTACTS, Right::ALLOW);
55  $everyone->setRight('ContactsModule', ContactsModule::RIGHT_CREATE_CONTACTS, Right::ALLOW);
56  $everyone->setRight('ContactsModule', ContactsModule::RIGHT_DELETE_CONTACTS, Right::ALLOW);
57  $everyone->setRight('ConversationsModule', ConversationsModule::RIGHT_ACCESS_CONVERSATIONS, Right::ALLOW);
58  $everyone->setRight('ConversationsModule', ConversationsModule::RIGHT_CREATE_CONVERSATIONS, Right::ALLOW);
59  $everyone->setRight('ConversationsModule', ConversationsModule::RIGHT_DELETE_CONVERSATIONS, Right::ALLOW);
60  $everyone->setRight('EmailMessagesModule', EmailMessagesModule::RIGHT_ACCESS_EMAIL_MESSAGES, Right::ALLOW);
61  $everyone->setRight('EmailMessagesModule', EmailMessagesModule::RIGHT_CREATE_EMAIL_MESSAGES, Right::ALLOW);
62  $everyone->setRight('EmailMessagesModule', EmailMessagesModule::RIGHT_DELETE_EMAIL_MESSAGES, Right::ALLOW);
63  $everyone->setRight('EmailTemplatesModule', EmailTemplatesModule::RIGHT_ACCESS_EMAIL_TEMPLATES, Right::ALLOW);
64  $everyone->setRight('EmailTemplatesModule', EmailTemplatesModule::RIGHT_CREATE_EMAIL_TEMPLATES, Right::ALLOW);
65  $everyone->setRight('EmailTemplatesModule', EmailTemplatesModule::RIGHT_DELETE_EMAIL_TEMPLATES, Right::ALLOW);
66  $everyone->setRight('LeadsModule', LeadsModule::RIGHT_ACCESS_LEADS, Right::ALLOW);
67  $everyone->setRight('LeadsModule', LeadsModule::RIGHT_CREATE_LEADS, Right::ALLOW);
68  $everyone->setRight('LeadsModule', LeadsModule::RIGHT_DELETE_LEADS, Right::ALLOW);
69  $everyone->setRight('LeadsModule', LeadsModule::RIGHT_CONVERT_LEADS, Right::ALLOW);
70  $everyone->setRight('OpportunitiesModule', OpportunitiesModule::RIGHT_ACCESS_OPPORTUNITIES, Right::ALLOW);
71  $everyone->setRight('OpportunitiesModule', OpportunitiesModule::RIGHT_CREATE_OPPORTUNITIES, Right::ALLOW);
72  $everyone->setRight('OpportunitiesModule', OpportunitiesModule::RIGHT_DELETE_OPPORTUNITIES, Right::ALLOW);
73  $everyone->setRight('MarketingModule', MarketingModule::RIGHT_ACCESS_MARKETING, Right::ALLOW);
74  $everyone->setRight('MarketingListsModule', MarketingListsModule::RIGHT_ACCESS_MARKETING_LISTS, Right::ALLOW);
75  $everyone->setRight('MarketingListsModule', MarketingListsModule::RIGHT_CREATE_MARKETING_LISTS, Right::ALLOW);
76  $everyone->setRight('MarketingListsModule', MarketingListsModule::RIGHT_DELETE_MARKETING_LISTS, Right::ALLOW);
77  $everyone->setRight('MeetingsModule', MeetingsModule::RIGHT_ACCESS_MEETINGS, Right::ALLOW);
78  $everyone->setRight('MeetingsModule', MeetingsModule::RIGHT_CREATE_MEETINGS, Right::ALLOW);
79  $everyone->setRight('MeetingsModule', MeetingsModule::RIGHT_DELETE_MEETINGS, Right::ALLOW);
80  $everyone->setRight('MissionsModule', MissionsModule::RIGHT_ACCESS_MISSIONS, Right::ALLOW);
81  $everyone->setRight('MissionsModule', MissionsModule::RIGHT_CREATE_MISSIONS, Right::ALLOW);
82  $everyone->setRight('MissionsModule', MissionsModule::RIGHT_DELETE_MISSIONS, Right::ALLOW);
83  $everyone->setRight('NotesModule', NotesModule::RIGHT_ACCESS_NOTES, Right::ALLOW);
84  $everyone->setRight('NotesModule', NotesModule::RIGHT_CREATE_NOTES, Right::ALLOW);
85  $everyone->setRight('NotesModule', NotesModule::RIGHT_DELETE_NOTES, Right::ALLOW);
86  $everyone->setRight('ReportsModule', ReportsModule::RIGHT_ACCESS_REPORTS, Right::ALLOW);
87  $everyone->setRight('ReportsModule', ReportsModule::RIGHT_CREATE_REPORTS, Right::ALLOW);
88  $everyone->setRight('ReportsModule', ReportsModule::RIGHT_DELETE_REPORTS, Right::ALLOW);
89  $everyone->setRight('TasksModule', TasksModule::RIGHT_ACCESS_TASKS, Right::ALLOW);
90  $everyone->setRight('TasksModule', TasksModule::RIGHT_CREATE_TASKS, Right::ALLOW);
91  $everyone->setRight('TasksModule', TasksModule::RIGHT_DELETE_TASKS, Right::ALLOW);
92  $everyone->setRight('HomeModule', HomeModule::RIGHT_ACCESS_DASHBOARDS, Right::ALLOW);
93  $everyone->setRight('HomeModule', HomeModule::RIGHT_CREATE_DASHBOARDS, Right::ALLOW);
94  $everyone->setRight('HomeModule', HomeModule::RIGHT_DELETE_DASHBOARDS, Right::ALLOW);
95  $everyone->setRight('ExportModule', ExportModule::RIGHT_ACCESS_EXPORT, Right::ALLOW);
96  $everyone->setRight('SocialItemsModule', SocialItemsModule::RIGHT_ACCESS_SOCIAL_ITEMS, Right::ALLOW);
97  $everyone->setRight('ProductsModule', ProductsModule::RIGHT_ACCESS_PRODUCTS, Right::ALLOW);
98  $everyone->setRight('ProductsModule', ProductsModule::RIGHT_CREATE_PRODUCTS, Right::ALLOW);
99  $everyone->setRight('ProductsModule', ProductsModule::RIGHT_DELETE_PRODUCTS, Right::ALLOW);
100  $everyone->setRight('ProductTemplatesModule', ProductTemplatesModule::RIGHT_ACCESS_PRODUCT_TEMPLATES, Right::ALLOW);
101  $everyone->setRight('ProductTemplatesModule', ProductTemplatesModule::RIGHT_CREATE_PRODUCT_TEMPLATES, Right::ALLOW);
102  $everyone->setRight('ProductTemplatesModule', ProductTemplatesModule::RIGHT_DELETE_PRODUCT_TEMPLATES, Right::ALLOW);
103  $everyone->setRight('ProjectsModule', ProjectsModule::RIGHT_ACCESS_PROJECTS, Right::ALLOW);
104  $everyone->setRight('ProjectsModule', ProjectsModule::RIGHT_CREATE_PROJECTS, Right::ALLOW);
105  $everyone->setRight('ProjectsModule', ProjectsModule::RIGHT_DELETE_PROJECTS, Right::ALLOW);
106  $everyone->setRight('CalendarsModule', CalendarsModule::RIGHT_ACCESS_CALENDAR, Right::ALLOW);
107  $everyone->setRight('CalendarsModule', CalendarsModule::RIGHT_CREATE_CALENDAR, Right::ALLOW);
108  $everyone->setRight('CalendarsModule', CalendarsModule::RIGHT_DELETE_CALENDAR, Right::ALLOW);
109  $saved = $everyone->save();
110  assert('$saved');
111  }
112  }
113 ?>
static getByName($name)
Definition: Group.php:57
Generated on Sat Jul 4 2020 07:10:36
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.