Rev 706 | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
<?php
use LeadersLinked\Model\UserType;
function getAclResources()
{
return [
'home',
'onroom',
'cesams',
'signin',
'signin/facebook',
'signin/twitter',
'signin/google',
'signin/impersonate',
'signin/debug',
'share',
'share/increment-external-counter',
'signout',
'signup',
'backend',
'backend/signin-admin',
'backend/signin-company',
'shorter',
'shorter/generate',
'crypto',
'csrf',
'check-session',
'language',
'impersonate',
'impersonate/execute',
'notifications',
'notifications/mark-read',
'notifications/mark-all-read',
'notifications/delete',
'notifications/clear',
'notifications/unreads',
'reset-password',
'forgot-password',
'activate-account',
'professionalism-policy',
'privacy-policy',
'terms-and-conditions',
'cookies',
'help',
'storage',
'oauth',
'oauth/facebook',
'oauth/facebook/cancel',
'oauth/facebook/delete',
'oauth/twitter',
'oauth/google',
'oauth/instagram',
'paypal',
'paypal/success',
'paypal/cancel',
'services',
'services/device',
'services/fcm',
'services/signin',
'services/signout',
'dashboard',
'post',
'post/comments',
'post/comments/add',
'post/comments/delete',
'post/save-reaction',
'post/delete-reaction',
'post/reactions',
'post/share',
'feed',
'feed/timeline',
'feed/add',
'feed/delete',
'feed/share',
'feed/comment',
'feed/comment/add',
'feed/comment/delete',
'feed/save-reaction',
'feed/delete-reaction',
'feed/vote',
'feed/reactions',
'connection',
'connection/my-connections',
'connection/people-you-may-know',
'connection/people-blocked',
'connection/people-blocked/delete',
'connection/invitations-sent',
'connection/invitations-received',
'connection/request',
'connection/approve',
'connection/reject',
'connection/block',
'connection/cancel',
'connection/delete',
'connection/unblock',
'account-settings',
'account-settings/image',
'account-settings/deactivate',
'account-settings/notifications',
'account-settings/password',
'account-settings/social-networks',
'account-settings/location',
'account-settings/privacy',
'account-settings/basic',
'account-settings/browsers',
'account-settings/ips',
'account-settings/devices',
'account-settings/transactions',
'account-settings/transactions/add-funds',
'account-settings/add-facebook',
'account-settings/remove-facebook',
'account-settings/add-twitter',
'account-settings/remove-twitter',
'account-settings/add-google',
'account-settings/remove-google',
'account-settings/delete-account',
'search',
'search/company',
'search/group',
'search/job',
'search/user',
'moodle',
'profile',
'profile/self-evaluation',
'profile/self-evaluation/take-a-test',
'profile/self-evaluation/report',
'profile/performance-evaluation',
'profile/performance-evaluation/take-a-test',
'profile/performance-evaluation/report',
'profile/microlearning',
'profile/microlearning/timeline',
'profile/microlearning/progress',
'profile/view',
'profile/people-viewed-profile',
'profile/my-profiles',
'profile/my-profiles/extended',
'profile/my-profiles/cover',
'profile/my-profiles/image',
'profile/my-profiles/experience',
'profile/my-profiles/education',
'profile/my-profiles/language',
'profile/my-profiles/location',
'profile/my-profiles/skill',
'profile/my-profiles/social-network',
'profile/my-profiles/aptitude',
'profile/my-profiles/hobby-and-interest',
'profile/my-profiles/add',
'profile/my-profiles/edit',
'profile/my-profiles/delete',
'company',
'company/my-companies',
'company/my-companies/add',
'company/following-companies',
'company/view',
'company/follow',
'company/unfollow',
'company/request',
'company/reject',
'company/accept',
'company/cancel',
'company/leave',
'company/requests-sent',
'company/invitations-received',
'company/i-work-with',
'group',
'group/view',
'group/request',
'group/leave',
'group/cancel',
'group/accept',
'group/reject',
'group/my-groups',
'group/my-groups/accessibility',
'group/my-groups/industry',
'group/my-groups/extended',
'group/my-groups/type',
'group/my-groups/users',
'group/my-groups/image',
'group/my-groups/cover',
'group/my-groups/website',
'group/my-groups/privacy',
'group/my-groups/add',
'group/my-groups/edit',
'group/my-groups/delete',
'group/my-groups/status',
'group/joined-groups',
'group/requests-sent',
'group/invitations-received',
'group/members',
'group/members/approve',
'group/members/reject',
'group/members/invite',
'group/members/cancel',
'job',
'job/view',
'job/applied-jobs',
'job/apply-job',
'job/remove-apply-job',
'job/saved-jobs',
'job/save-job',
'job/remove-save-job',
'inmail',
'inmail/user',
'inmail/user/block',
'inmail/messages',
'inmail/messages/send',
'inmail/messages/delete',
'inmail/messages/get',
'inmail/messages/attachment',
'chat',
'chat/users',
'chat/heart-beat',
'chat/create-group',
'chat/add-user-to-group',
'chat/mark-seen',
'chat/mark-received',
'chat/remove-user-from-group',
'chat/get-all-messages',
'chat/send',
'chat/get-contacts-availables-for-group',
'chat/get-contact-group-list',
'chat/leave-group',
'chat/delete-group',
'chat/close',
'chat/clear',
'chat/open',
'chat/upload',
'chat/zoom',
'chat/open-or-create',
'helpers',
'helpers/search-people',
'helpers/posts',
'helpers/people-you-may-know',
'helpers/people-viewed-profile',
'helpers/company-follower',
'helpers/company-suggestion',
'helpers/group-members',
'helpers/group-members/invite',
'helpers/group-members/cancel',
'helpers/group-members/reject',
'helpers/group-members/approve',
'helpers/groups-suggestion',
'helpers/group-types',
'helpers/my-groups',
'helpers/footer',
'helpers/next-events',
'helpers/menu',
'helpers/company-sizes',
'helpers/degrees',
'helpers/languages',
'helpers/skills',
'helpers/aptitudes',
'helpers/hobbies',
'helpers/industries',
'helpers/timezones',
'helpers/abuse-report',
'abuse-report',
'abuse-report/view',
'marketplace',
'marketplace/categories',
'marketplace/enroll',
'marketplace/claim',
'marketplace/join',
'marketplace/buy',
//Menú virtual de opciones
'communication',
'knowledge',
'calendar',
'calendar/events',
'knowledge-area',
'knowledge-area/metadata',
'knowledge-area/list',
'knowledge-area/add',
'knowledge-area/edit',
'knowledge-area/delete',
'knowledge-area/view',
'knowledge-area/comments',
'knowledge-area/comments/add',
'knowledge-area/comments/delete',
'knowledge-area/save-reaction',
'knowledge-area/delete-reaction',
'knowledge-area/reactions',
'my-coach',
'my-coach/questions',
'my-coach/questions/view',
'my-coach/questions/add',
'my-coach/questions/edit',
'my-coach/questions/delete',
'my-coach/questions/answers',
'my-coach/questions/answers/add',
'my-coach/questions/answers/edit',
'my-coach/questions/answers/delete',
'my-coach/questions/reaction',
'my-coach/questions/reaction/save',
'my-coach/questions/reaction/delete',
'my-coach/questions/reactions',
'my-coach/questions/comments',
'my-coach/questions/comments/add',
'my-coach/questions/comments/delete',
'daily-pulse',
'daily-pulse/how_are_you_feel',
'daily-pulse/climate_on_your_organization',
'microlearning',
'microlearning/take-a-test',
'microlearning/profile',
'microlearning/companies',
'microlearning/progress',
'microlearning/timeline',
'microlearning/last-capsule-in-progress',
'microlearning/capsules-pending',
'microlearning/capsules-completed',
'microlearning/capsules-in-progress',
'microlearning/capsules-comments',
'microlearning/capsules-comments/add',
'microlearning/capsules-comments/delete',
'microlearning/topics',
'microlearning/capsules',
'microlearning/slides',
'microlearning/topic',
'microlearning/capsule',
'microlearning/get-slide',
'microlearning/sync',
'habits',
'habits/aspect-daily-log',
'habits/values',
'habits/values/add',
'habits/values/edit',
'habits/values/delete',
'habits/paradigms',
'habits/paradigms/add',
'habits/paradigms/edit',
'habits/paradigms/delete',
'habits/purposes',
'habits/purposes/add',
'habits/purposes/edit',
'habits/purposes/delete',
'habits/skills',
'habits/skills/add',
'habits/skills/edit',
'habits/skills/delete',
'habits/skills/registers',
'habits/skills/registers/add',
'habits/skills/registers/edit',
'habits/skills/registers/delete',
'habits/goals',
'habits/goals/add',
'habits/goals/edit',
'habits/goals/delete',
'habits/reports',
'helpers/habits-and-skills',
'helpers/habits-and-skills/get',
'helpers/habits-and-skills/my',
'recruitment-ai',
'recruitment-ai/pre-aplications',
'recruitment-ai/job-description',
];
}
function getAclSuperAdmin()
{
return [
'impersonate',
'impersonate/execute',
];
}
function getAclUsertypeDefaultNetwork()
{
return [
UserType::ADMIN => [
'company',
'company/my-companies',
'company/my-companies/add',
'company/following-companies',
'company/view',
'company/follow',
'company/unfollow',
'company/request',
'company/reject',
'company/accept',
'company/cancel',
'company/leave',
'company/requests-sent',
'company/invitations-received',
'company/i-work-with',
'search',
'search/company',
],
UserType::USER => [
'company',
'company/my-companies',
'company/my-companies/add',
'company/following-companies',
'company/view',
'company/follow',
'company/unfollow',
'company/request',
'company/reject',
'company/accept',
'company/cancel',
'company/leave',
'company/requests-sent',
'company/invitations-received',
'company/i-work-with',
'search',
'search/company',
],
];
}
function getAclMicrolearning()
{
return [
'knowledge',
'microlearning',
'microlearning/take-a-test',
'microlearning/profile',
'microlearning/companies',
'microlearning/progress',
'microlearning/timeline',
'microlearning/last-capsule-in-progress',
'microlearning/capsules-pending',
'microlearning/capsules-completed',
'microlearning/capsules-in-progress',
'microlearning/capsules-comments',
'microlearning/capsules-comments/add',
'microlearning/capsules-comments/delete',
'microlearning/topics',
'microlearning/capsules',
'microlearning/slides',
'microlearning/topic',
'microlearning/capsule',
'microlearning/get-slide',
'microlearning/sync',
];
}
function getAclHabits()
{
return [
'habits',
'habits/aspect-daily-log',
'habits/values',
'habits/values/add',
'habits/values/edit',
'habits/values/delete',
'habits/paradigms',
'habits/paradigms/add',
'habits/paradigms/edit',
'habits/paradigms/delete',
'habits/purposes',
'habits/purposes/add',
'habits/purposes/edit',
'habits/purposes/delete',
'habits/skills',
'habits/skills/add',
'habits/skills/edit',
'habits/skills/delete',
'habits/skills/registers',
'habits/skills/registers/add',
'habits/skills/registers/edit',
'habits/skills/registers/delete',
'habits/reports',
'habits/goals',
'habits/goals/add',
'habits/goals/edit',
'habits/goals/delete',
'helpers',
'helpers/habits-and-skills',
'helpers/habits-and-skills/get',
'helpers/habits-and-skills/my',
'recruitment-ai',
'recruitment-ai/pre-aplications',
'recruitment-ai/job-description',
];
}
function getAclUsertypeOtherNetworkCreator()
{
return [
'company',
'company/my-companies',
'company/view',
];
}
function getAclUsertypeOtherNetworkNonCreator()
{
return [
'company',
'company/i-work-with',
'company/view',
];
}
function getAclDailyPulse()
{
return [
'daily-pulse',
'daily-pulse/how_are_you_feel',
'daily-pulse/climate_on_your_organization',
];
}
function getAclKnowledgeArea()
{
return [
'knowledge',
'knowledge-area',
'knowledge-area/metadata',
'knowledge-area/list',
'knowledge-area/add',
'knowledge-area/edit',
'knowledge-area/delete',
'knowledge-area/view',
'knowledge-area/comments',
'knowledge-area/comments/add',
'knowledge-area/comments/delete',
'knowledge-area/save-reaction',
'knowledge-area/delete-reaction',
'knowledge-area/reactions'
];
}
function getAclMyCoach()
{
return [
'knowledge',
'my-coach',
'my-coach/questions',
'my-coach/questions/view',
'my-coach/questions/add',
'my-coach/questions/edit',
'my-coach/questions/delete',
'my-coach/questions/answers',
'my-coach/questions/answers/add',
'my-coach/questions/answers/edit',
'my-coach/questions/answers/delete',
'my-coach/questions/reaction',
'my-coach/questions/reaction/save',
'my-coach/questions/reaction/delete',
'my-coach/questions/reactions',
'my-coach/questions/comments',
'my-coach/questions/comments/add',
'my-coach/questions/comments/delete',
];
}
function getAclUsertype()
{
return [
UserType::ADMIN => [
'home',
'storage',
'share',
'share/increment-external-counter',
'onroom',
'cesams',
'language',
'signin',
'signin/facebook',
'signin/twitter',
'signin/google',
'signin/impersonate',
'signin/debug',
'signout',
'signup',
'csrf',
'check-session',
'shorter',
'shorter/generate',
'communication',
'notifications',
'notifications/mark-read',
'notifications/mark-all-read',
'notifications/delete',
'notifications/clear',
'notifications/unreads',
'reset-password',
'forgot-password',
'professionalism-policy',
'activate-account',
'privacy-policy',
'terms-and-conditions',
'cookies',
'backend',
'backend/signin-admin',
'backend/signin-company',
'oauth',
'oauth/facebook',
'oauth/facebook/cancel',
'oauth/facebook/delete',
'oauth/twitter',
'oauth/google',
'oauth/instagram',
'paypal',
'paypal/success',
'paypal/cancel',
'services',
'services/device',
'services/fcm',
'services/signin',
'services/signout',
'dashboard',
'post',
'post/comments',
'post/comments/add',
'post/comments/delete',
'post/save-reaction',
'post/delete-reaction',
'post/reactions',
'feed',
'feed/timeline',
'feed/add',
'feed/delete',
'feed/share',
'feed/comment',
'feed/comment/delete',
'feed/save-reaction',
'feed/delete-reaction',
'feed/vote',
'feed/reactions',
'connection',
'connection/my-connections',
'connection/people-you-may-know',
'connection/people-blocked',
'connection/people-blocked/delete',
'connection/invitations-sent',
'connection/invitations-received',
'connection/request',
'connection/approve',
'connection/reject',
'connection/block',
'connection/cancel',
'connection/delete',
'connection/unblock',
'account-settings',
'account-settings/image',
'account-settings/deactivate',
'account-settings/notifications',
'account-settings/password',
'account-settings/social-networks',
'account-settings/location',
'account-settings/privacy',
'account-settings/basic',
'account-settings/browsers',
'account-settings/ips',
'account-settings/devices',
'account-settings/transactions',
'account-settings/transactions/add-funds',
'account-settings/add-facebook',
'account-settings/remove-facebook',
'account-settings/add-twitter',
'account-settings/remove-twitter',
'account-settings/add-google',
'account-settings/remove-google',
'account-settings/delete-account',
'search',
'search/group',
'search/job',
'search/user',
'moodle',
'profile',
'profile/self-evaluation',
'profile/self-evaluation/take-a-test',
'profile/self-evaluation/report',
'profile/performance-evaluation',
'profile/performance-evaluation/take-a-test',
'profile/performance-evaluation/report',
'profile/microlearning',
'profile/microlearning/timeline',
'profile/microlearning/progress',
'profile/view',
'profile/people-viewed-profile',
'profile/my-profiles',
'profile/my-profiles/extended',
'profile/my-profiles/cover',
'profile/my-profiles/image',
'profile/my-profiles/experience',
'profile/my-profiles/education',
'profile/my-profiles/language',
'profile/my-profiles/location',
'profile/my-profiles/skill',
'profile/my-profiles/social-network',
'profile/my-profiles/aptitude',
'profile/my-profiles/hobby-and-interest',
'profile/my-profiles/add',
'profile/my-profiles/edit',
'profile/my-profiles/delete',
'group',
'group/view',
'group/request',
'group/leave',
'group/cancel',
'group/accept',
'group/reject',
'group/my-groups',
'group/my-groups/accessibility',
'group/my-groups/industry',
'group/my-groups/extended',
'group/my-groups/type',
'group/my-groups/users',
'group/my-groups/image',
'group/my-groups/cover',
'group/my-groups/website',
'group/my-groups/privacy',
'group/my-groups/add',
'group/my-groups/edit',
'group/my-groups/delete',
'group/my-groups/status',
'group/joined-groups',
'group/requests-sent',
'group/invitations-received',
'group/members',
'group/members/approve',
'group/members/reject',
'group/members/invite',
'group/members/cancel',
'job',
'job/view',
'job/applied-jobs',
'job/apply-job',
'job/remove-apply-job',
'job/saved-jobs',
'job/save-job',
'job/remove-save-job',
'help',
'helpers',
'helpers/search-people',
'helpers/posts',
'helpers/people-you-may-know',
'helpers/people-viewed-profile',
'helpers/company-follower',
'helpers/company-suggestion',
'helpers/group-members',
'helpers/group-members/invite',
'helpers/group-members/cancel',
'helpers/group-members/reject',
'helpers/group-members/approve',
'helpers/groups-suggestion',
'helpers/group-types',
'helpers/my-groups',
'helpers/footer',
'helpers/timezones',
'helpers/next-events',
'helpers/menu',
'helpers/company-sizes',
'helpers/degrees',
'helpers/languages',
'helpers/skills',
'helpers/aptitudes',
'helpers/hobbies',
'helpers/industries',
'helpers/abuse-report',
'abuse-report',
'abuse-report/view',
'marketplace',
'marketplace/categories',
'marketplace/enroll',
'marketplace/claim',
'marketplace/join',
'marketplace/buy',
'calendar',
'calendar/events',
/*
'zoom',
'zoom/add',
'zoom/delete',
'zoom/listing',
*/
'inmail',
'inmail/user',
'inmail/user/block',
'inmail/messages',
'inmail/messages/send',
'inmail/messages/delete',
'inmail/messages/get',
'inmail/messages/attachment',
],
UserType::USER => [
'home',
'storage',
'onroom',
'cesams',
'language',
'share',
'share/increment-external-counter',
'signin',
'signin/facebook',
'signin/twitter',
'signin/google',
'signin/impersonate',
'signin/debug',
'signout',
'signup',
'csrf',
'check-session',
'shorter',
'shorter/generate',
'notifications',
'notifications/mark-read',
'notifications/mark-all-read',
'notifications/delete',
'notifications/clear',
'notifications/unreads',
'professionalism-policy',
'reset-password',
'forgot-password',
'activate-account',
'privacy-policy',
'terms-and-conditions',
'cookies',
'backend',
'backend/signin-company',
'oauth',
'oauth/facebook',
'oauth/facebook/cancel',
'oauth/facebook/delete',
'oauth/twitter',
'oauth/google',
'oauth/instagram',
'paypal',
'paypal/success',
'paypal/cancel',
'services',
'services/device',
'services/fcm',
'services/signin',
'services/signout',
'dashboard',
'post',
'post/comments',
'post/comments/add',
'post/comments/delete',
'post/save-reaction',
'post/delete-reaction',
'post/reactions',
'feed',
'feed/timeline',
'feed/add',
'feed/delete',
'feed/share',
'feed/comment',
'feed/comment/delete',
'feed/save-reaction',
'feed/delete-reaction',
'feed/vote',
'feed/reactions',
'connection',
'connection/my-connections',
'connection/people-you-may-know',
'connection/people-blocked',
'connection/people-blocked/delete',
'connection/invitations-sent',
'connection/invitations-received',
'connection/request',
'connection/approve',
'connection/reject',
'connection/block',
'connection/cancel',
'connection/delete',
'connection/unblock',
'account-settings',
'account-settings/image',
'account-settings/deactivate',
'account-settings/notifications',
'account-settings/password',
'account-settings/social-networks',
'account-settings/location',
'account-settings/privacy',
'account-settings/basic',
'account-settings/browsers',
'account-settings/ips',
'account-settings/devices',
'account-settings/transactions',
'account-settings/transactions/add-funds',
'account-settings/add-facebook',
'account-settings/remove-facebook',
'account-settings/add-twitter',
'account-settings/remove-twitter',
'account-settings/add-google',
'account-settings/remove-google',
'account-settings/delete-account',
'search',
'search/group',
'search/job',
'search/user',
'moodle',
'profile',
'profile/self-evaluation',
'profile/self-evaluation/take-a-test',
'profile/self-evaluation/report',
'profile/performance-evaluation',
'profile/performance-evaluation/take-a-test',
'profile/performance-evaluation/report',
'profile/microlearning',
'profile/microlearning/timeline',
'profile/microlearning/progress',
'profile/view',
'profile/people-viewed-profile',
'profile/my-profiles',
'profile/my-profiles/extended',
'profile/my-profiles/cover',
'profile/my-profiles/image',
'profile/my-profiles/experience',
'profile/my-profiles/education',
'profile/my-profiles/language',
'profile/my-profiles/location',
'profile/my-profiles/skill',
'profile/my-profiles/social-network',
'profile/my-profiles/aptitude',
'profile/my-profiles/hobby-and-interest',
'profile/my-profiles/add',
'profile/my-profiles/edit',
'profile/my-profiles/delete',
'group',
'group/view',
'group/request',
'group/leave',
'group/cancel',
'group/accept',
'group/reject',
'group/my-groups',
'group/my-groups/accessibility',
'group/my-groups/industry',
'group/my-groups/extended',
'group/my-groups/type',
'group/my-groups/users',
'group/my-groups/image',
'group/my-groups/cover',
'group/my-groups/website',
'group/my-groups/privacy',
'group/my-groups/add',
'group/my-groups/edit',
'group/my-groups/delete',
'group/my-groups/status',
'group/joined-groups',
'group/requests-sent',
'group/invitations-received',
'group/members',
'group/members/approve',
'group/members/reject',
'group/members/invite',
'group/members/cancel',
'job',
'job/view',
'job/applied-jobs',
'job/apply-job',
'job/remove-apply-job',
'job/saved-jobs',
'job/save-job',
'job/remove-save-job',
'communication',
'help',
'helpers',
'helpers/search-people',
'helpers/posts',
'helpers/people-you-may-know',
'helpers/people-viewed-profile',
'helpers/company-follower',
'helpers/company-suggestion',
'helpers/group-members',
'helpers/group-members/invite',
'helpers/group-members/cancel',
'helpers/group-members/reject',
'helpers/group-members/approve',
'helpers/groups-suggestion',
'helpers/group-types',
'helpers/my-groups',
'helpers/footer',
'helpers/timezones',
'helpers/next-events',
'helpers/menu',
'helpers/company-sizes',
'helpers/degrees',
'helpers/languages',
'helpers/skills',
'helpers/aptitudes',
'helpers/hobbies',
'helpers/industries',
'helpers/abuse-report',
'abuse-report',
'abuse-report/view',
'marketplace',
'marketplace/categories',
'marketplace/enroll',
'marketplace/claim',
'marketplace/join',
'marketplace/buy',
'calendar',
'calendar/events',
'inmail',
'inmail/user',
'inmail/user/block',
'inmail/messages',
'inmail/messages/send',
'inmail/messages/delete',
'inmail/messages/get',
'inmail/messages/attachment',
/*
'zoom',
'zoom/add',
'zoom/delete',
'zoom/listing',*/
],
UserType::GUEST => [
'home',
'storage',
'onroom',
'cesams',
'language',
'share',
'crypto',
'signin',
'signin/facebook',
'signin/twitter',
'signin/google',
'signin/debug',
'signout',
'signup',
'shorter',
'professionalism-policy',
'reset-password',
'forgot-password',
'activate-account',
'privacy-policy',
'terms-and-conditions',
'cookies',
'csrf',
'oauth',
'oauth/facebook',
'oauth/facebook/cancel',
'oauth/facebook/delete',
'oauth/twitter',
'oauth/google',
'oauth/instagram',
'paypal',
'paypal/success',
'paypal/cancel',
'services',
'services/device',
'services/fcm',
'services/signin',
'services/signout',
'helpers',
'helpers/footer',
'helpers/timezones',
/*
'zoom',
'zoom/add',
'zoom/delete',
'zoom/listing',*/
],
UserType::USER_DELETED => [
'home',
'language',
'signin',
'signin/facebook',
'signin/twitter',
'signin/google',
'signin/debug',
'signout',
'signup',
'check-session',
'notifications',
'notifications/mark-read',
'notifications/mark-all-read',
'notifications/delete',
'notifications/clear',
'notifications/unreads',
'professionalism-policy',
'reset-password',
'forgot-password',
'activate-account',
'privacy-policy',
'terms-and-conditions',
'cookies',
'oauth',
'csrf',
'shorter',
'helpers',
'helpers/timezones',
'oauth/facebook',
'oauth/facebook/cancel',
'oauth/facebook/delete',
'oauth/twitter',
'oauth/google',
'oauth/instagram',
'services',
'services/device',
'services/fcm',
'services/signin',
'services/signout',
],
];
}
function getAclMenuDefaultNetworkConnectionUser2User()
{
return [
[
'label' => 'LABEL_HOME',
'route' => 'dashboard',
'class' => '/images/navbar/home.svg',
],
[
'label' => 'LABEL_PROFILE',
'route' => 'profile',
'class' => '/images/navbar/perfil.svg',
'pages' => [
[
'label' => 'LABEL_CONNECTIONS',
'route' => 'connection',
//'class' =>'/images/navbar/conexion.svg',
'pages' => [
[
'label' => 'LABEL_MY_CONNECTIONS',
'route' => 'connection/my-connections'
],
[
'label' => 'LABEL_INVITATIONS_SENT',
'route' => 'connection/invitations-sent'
],
[
'label' => 'LABEL_INVITATIONS_RECEIVED',
'route' => 'connection/invitations-received'
],
[
'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
'route' => 'connection/people-you-may-know'
],
[
'label' => 'LABEL_PEOPLE_BLOCKED',
'route' => 'connection/people-blocked'
],
]
],
[
'label' => 'LABEL_MY_PROFILES',
'route' => 'profile/my-profiles'
],
[
'label' => 'LABEL_JOBS',
'route' => 'job',
'pages' => [
[
'label' => 'LABEL_JOBS_APPLIED',
'route' => 'job/applied-jobs'
],
[
'label' => 'LABEL_JOBS_SAVED',
'route' => 'job/saved-jobs'
],
]
],
[
'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
'route' => 'profile/people-viewed-profile'
],
]
],
[
'label' => 'LABEL_COMPANIES',
'route' => 'company',
'class' => '/images/navbar/empresa.svg',
'pages' => [
[
'label' => 'LABEL_MY_COMPANIES',
'route' => 'company/my-companies'
],
[
'label' => 'LABEL_COMPANIES_I_FOLLOW',
'route' => 'company/following-companies'
],
[
'label' => 'LABEL_COMPANIES_I_WORK_WITH',
'route' => 'company/i-work-with'
],
[
'label' => 'LABEL_REQUESTS_SENT',
'route' => 'company/requests-sent'
],
[
'label' => 'LABEL_INVITATIONS_RECEIVED',
'route' => 'company/invitations-received'
]
]
],
[
'label' => 'LABEL_GROUPS',
'route' => 'group',
'class' => '/images/navbar/grupos.svg',
'pages' => [
[
'label' => 'LABEL_MY_GROUPS',
'route' => 'group/my-groups'
],
[
'label' => 'LABEL_JOINED_GROUPS',
'route' => 'group/joined-groups'
],
[
'label' => 'LABEL_REQUESTS_SENT',
'route' => 'group/requests-sent'
],
[
'label' => 'LABEL_INVITATIONS_RECEIVED',
'route' => 'group/invitations-received'
]
]
],
[
'label' => 'LABEL_MARKETPLACE',
'route' => 'marketplace',
'class' => '/images/navbar/market-place.svg',
],
[
'label' => 'LABEL_COMMUNICATION',
'route' => 'communication',
'class' => '/images/navbar/calendar.svg',
'pages' => [
[
'label' => 'LABEL_CALENDAR',
'route' => 'calendar',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_INMAIL',
'route' => 'inmail',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_CHAT',
'route' => 'chat',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_NOTIFICATIONS',
'route' => 'notifications',
'class' => '/images/navbar/calendar.svg',
],
],
],
[
'label' => 'LABEL_KNOWLEDGE',
'route' => 'knowledge',
'class' => '/images/navbar/calendar.svg',
'pages' => [
[
'label' => 'LABEL_MY_COACH',
'route' => 'my-coach',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_KNOWLEDGE_AREA',
'route' => 'knowledge-area',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING',
'route' => 'microlearning',
'class' => '/images/navbar/calendar.svg',
/*
'pages' => [
[
'label' => 'LABEL_HOME',
'route' => 'microlearning',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_TOPICS',
'route' => 'microlearning/topics',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
'route' => 'microlearning/timeline',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
'route' => 'microlearning/companies',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_PROFILE',
'route' => 'microlearning/profile',
'class' => '/images/navbar/calendar.svg',
],
]*/
],
[
'label' => 'LABEL_HABITS',
'route' => 'habits',
'class' => '/images/navbar/calendar.svg',
]
]
],
];
}
function getAclMenuDefaultNetworkConnectionAll2All()
{
return [
[
'label' => 'LABEL_HOME',
'route' => 'dashboard',
'class' => '/images/navbar/home.svg',
],
[
'label' => 'LABEL_PROFILE',
'route' => 'profile',
'class' => '/images/navbar/perfil.svg',
'pages' => [
[
'label' => 'LABEL_MY_CONNECTIONS',
'route' => 'connection/my-connections',
],
[
'label' => 'LABEL_MY_PROFILES',
'route' => 'profile/my-profiles'
],
[
'label' => 'LABEL_JOBS_APPLIED',
'route' => 'job/applied-jobs'
],
[
'label' => 'LABEL_JOBS_SAVED',
'route' => 'job/saved-jobs'
],
[
'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
'route' => 'profile/people-viewed-profile'
],
]
],
[
'label' => 'LABEL_COMPANIES',
'route' => 'company',
'class' => '/images/navbar/empresa.svg',
'pages' => [
[
'label' => 'LABEL_MY_COMPANIES',
'route' => 'company/my-companies'
],
[
'label' => 'LABEL_COMPANIES_I_FOLLOW',
'route' => 'company/following-companies'
],
[
'label' => 'LABEL_COMPANIES_I_WORK_WITH',
'route' => 'company/i-work-with'
],
[
'label' => 'LABEL_REQUESTS_SENT',
'route' => 'company/requests-sent'
],
[
'label' => 'LABEL_INVITATIONS_RECEIVED',
'route' => 'company/invitations-received'
]
]
],
[
'label' => 'LABEL_GROUPS',
'route' => 'group',
'class' => '/images/navbar/grupos.svg',
'pages' => [
[
'label' => 'LABEL_MY_GROUPS',
'route' => 'group/my-groups'
],
[
'label' => 'LABEL_JOINED_GROUPS',
'route' => 'group/joined-groups'
],
[
'label' => 'LABEL_REQUESTS_SENT',
'route' => 'group/requests-sent'
],
[
'label' => 'LABEL_INVITATIONS_RECEIVED',
'route' => 'group/invitations-received'
]
]
],
[
'label' => 'LABEL_MARKETPLACE',
'route' => 'marketplace',
'class' => '/images/navbar/market-place.svg',
],
[
'label' => 'LABEL_COMMUNICATION',
'route' => 'communication',
'class' => '/images/navbar/calendar.svg',
'pages' => [
[
'label' => 'LABEL_CALENDAR',
'route' => 'calendar',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_INMAIL',
'route' => 'inmail',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_CHAT',
'route' => 'chat',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_NOTIFICATIONS',
'route' => 'notifications',
'class' => '/images/navbar/calendar.svg',
],
],
],
[
'label' => 'LABEL_KNOWLEDGE',
'route' => 'knowledge',
'class' => '/images/navbar/calendar.svg',
'pages' => [
[
'label' => 'LABEL_MY_COACH',
'route' => 'my-coach',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_KNOWLEDGE_AREA',
'route' => 'knowledge-area',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING',
'route' => 'microlearning',
'class' => '/images/navbar/calendar.svg',
/*
'pages' => [
[
'label' => 'LABEL_HOME',
'route' => 'microlearning',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_TOPICS',
'route' => 'microlearning/topics',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
'route' => 'microlearning/timeline',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
'route' => 'microlearning/companies',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_PROFILE',
'route' => 'microlearning/profile',
'class' => '/images/navbar/calendar.svg',
],
]*/
],
]
],
];
}
function getAclMenuNonDefaulNetworkConnectionUser2User()
{
return [
[
'label' => 'LABEL_HOME',
'route' => 'dashboard',
'class' => '/images/navbar/home.svg',
],
[
'label' => 'LABEL_PROFILE',
'route' => 'profile',
'class' => '/images/navbar/perfil.svg',
'pages' => [
[
'label' => 'LABEL_CONNECTIONS',
'route' => 'connection',
//'class' =>'/images/navbar/conexion.svg',
'pages' => [
[
'label' => 'LABEL_MY_CONNECTIONS',
'route' => 'connection/my-connections'
],
[
'label' => 'LABEL_INVITATIONS_SENT',
'route' => 'connection/invitations-sent'
],
[
'label' => 'LABEL_INVITATIONS_RECEIVED',
'route' => 'connection/invitations-received'
],
[
'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
'route' => 'connection/people-you-may-know'
],
[
'label' => 'LABEL_PEOPLE_BLOCKED',
'route' => 'connection/people-blocked'
],
]
],
[
'label' => 'LABEL_MY_PROFILES',
'route' => 'profile/my-profiles'
],
[
'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
'route' => 'profile/people-viewed-profile'
],
]
],
[
'label' => 'LABEL_COMPANY',
'route' => 'company',
'class' => '/images/navbar/empresa.svg',
],
[
'label' => 'LABEL_GROUPS',
'route' => 'group',
'class' => '/images/navbar/grupos.svg',
'pages' => [
[
'label' => 'LABEL_MY_GROUPS',
'route' => 'group/my-groups'
],
[
'label' => 'LABEL_JOINED_GROUPS',
'route' => 'group/joined-groups'
],
[
'label' => 'LABEL_REQUESTS_SENT',
'route' => 'group/requests-sent'
],
[
'label' => 'LABEL_INVITATIONS_RECEIVED',
'route' => 'group/invitations-received'
]
]
],
[
'label' => 'LABEL_MARKETPLACE',
'route' => 'marketplace',
'class' => '/images/navbar/market-place.svg',
],
[
'label' => 'LABEL_COMMUNICATION',
'route' => 'communication',
'class' => '/images/navbar/calendar.svg',
'pages' => [
[
'label' => 'LABEL_CALENDAR',
'route' => 'calendar',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_INMAIL',
'route' => 'inmail',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_CHAT',
'route' => 'chat',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_NOTIFICATIONS',
'route' => 'notifications',
'class' => '/images/navbar/calendar.svg',
],
],
],
[
'label' => 'LABEL_KNOWLEDGE',
'route' => 'knowledge',
'class' => '/images/navbar/calendar.svg',
'pages' => [
[
'label' => 'LABEL_MY_COACH',
'route' => 'my-coach',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_KNOWLEDGE_AREA',
'route' => 'knowledge-area',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING',
'route' => 'microlearning',
'class' => '/images/navbar/calendar.svg',
/*
'pages' => [
[
'label' => 'LABEL_HOME',
'route' => 'microlearning',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_TOPICS',
'route' => 'microlearning/topics',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
'route' => 'microlearning/timeline',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
'route' => 'microlearning/companies',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_PROFILE',
'route' => 'microlearning/profile',
'class' => '/images/navbar/calendar.svg',
],
]*/
],
]
],
];
}
function getAclMenuNonDefaultNetworkConnectionAll2All()
{
return [
[
'label' => 'LABEL_HOME',
'route' => 'dashboard',
'class' => '/images/navbar/home.svg',
],
[
'label' => 'LABEL_PROFILE',
'route' => 'profile',
'class' => '/images/navbar/perfil.svg',
'pages' => [
[
'label' => 'LABEL_MY_CONNECTIONS',
'route' => 'connection/my-connections'
],
[
'label' => 'LABEL_MY_PROFILES',
'route' => 'profile/my-profiles'
],
[
'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
'route' => 'profile/people-viewed-profile'
],
]
],
[
'label' => 'LABEL_COMPANY',
'route' => 'company',
'class' => '/images/navbar/empresa.svg',
],
[
'label' => 'LABEL_GROUPS',
'route' => 'group',
'class' => '/images/navbar/grupos.svg',
'pages' => [
[
'label' => 'LABEL_MY_GROUPS',
'route' => 'group/my-groups'
],
[
'label' => 'LABEL_JOINED_GROUPS',
'route' => 'group/joined-groups'
],
[
'label' => 'LABEL_REQUESTS_SENT',
'route' => 'group/requests-sent'
],
[
'label' => 'LABEL_INVITATIONS_RECEIVED',
'route' => 'group/invitations-received'
]
]
],
[
'label' => 'LABEL_MARKETPLACE',
'route' => 'marketplace',
'class' => '/images/navbar/market-place.svg',
],
[
'label' => 'LABEL_COMMUNICATION',
'route' => 'communication',
'class' => '/images/navbar/calendar.svg',
'pages' => [
[
'label' => 'LABEL_CALENDAR',
'route' => 'calendar',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_INMAIL',
'route' => 'inmail',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_CHAT',
'route' => 'chat',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_NOTIFICATIONS',
'route' => 'notifications',
'class' => '/images/navbar/calendar.svg',
],
],
],
[
'label' => 'LABEL_KNOWLEDGE',
'route' => 'knowledge',
'class' => '/images/navbar/calendar.svg',
'pages' => [
[
'label' => 'LABEL_MY_COACH',
'route' => 'my-coach',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_KNOWLEDGE_AREA',
'route' => 'knowledge-area',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING',
'route' => 'microlearning',
'class' => '/images/navbar/calendar.svg',
/*
'pages' => [
[
'label' => 'LABEL_HOME',
'route' => 'microlearning',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_TOPICS',
'route' => 'microlearning/topics',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
'route' => 'microlearning/timeline',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
'route' => 'microlearning/companies',
'class' => '/images/navbar/calendar.svg',
],
[
'label' => 'LABEL_MICROLEARNING_PROFILE',
'route' => 'microlearning/profile',
'class' => '/images/navbar/calendar.svg',
],
]*/
],
]
],
];
}