@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
40 lines • 3.03 kB
JavaScript
export const GroupTitlePrefix = "groupTitle-";
export const GroupIdPrefix = "groupId-";
export const ListSystemGroup = 'Limited Access System Group For List';
export const WebSystemGroup = 'Limited Access System Group For Web';
export const PermNames = [
{ Name: 'Full Control', simple: 3, medium: 4, complex: 5, common: true, teams: true, known: 'Exact' },
{ Name: 'Manage Hierarchy', simple: 3, medium: 4, complex: 5, common: false, teams: false, known: 'Exact' },
{ Name: 'Design', simple: 3, medium: 3, complex: 4, common: true, teams: false, known: 'Exact' },
{ Name: 'Edit', simple: 3, medium: 3, complex: 4, common: true, teams: true, known: 'Exact' },
{ Name: 'Approve', simple: 3, medium: 3, complex: 3, common: true, teams: false, known: 'Exact' },
// https://github.com/mikezimm/pivottiles7/issues/481
{ Name: 'Override-List-Behaviors', simple: 2, medium: 2, complex: 2, common: true, teams: false, known: 'Exact' },
{ Name: 'Contribute', simple: 2, medium: 2, complex: 2, common: true, teams: false, known: 'Exact' },
// https://github.com/mikezimm/pivottiles7/issues/481
{ Name: 'Contribute-No-Delete', simple: 2, medium: 2, complex: 2, common: true, teams: false, known: 'Exact' },
// https://github.com/mikezimm/pivottiles7/issues/481
{ Name: 'Create-Only', simple: 2, medium: 2, complex: 2, common: true, teams: false, known: 'Exact' },
// { Name: 'Restricted Read', simple: 1, medium: 1, complex: 1, common: false, teams: false, known: 'Exact' },
{ Name: 'Read', simple: 1, medium: 1, complex: 1, common: true, teams: true, known: 'Exact' },
{ Name: 'View', simple: 1, medium: 1, complex: 1, common: false, teams: false, known: 'Exact' },
{ Name: 'Limited Access', simple: 0, medium: 0, complex: 0, common: true, teams: false, known: 'Exact' },
//Restricted Interfaces: Give this on site when they only have list permissions so they can still get to the list UI
// https://social.technet.microsoft.com/Forums/ie/en-US/9a6f7e55-fc39-4c47-a23b-7d709233b86d/giving-list-permission-to-users-with-no-access-to-the-main-site?forum=sharepointgeneral
// https://sharepoint.stackexchange.com/a/223593
{ Name: 'Restricted Interfaces for Translation', simple: 0, medium: 0, complex: 0, common: false, teams: false, known: 'Exact' },
{ Name: 'Web-Only Limited Access', simple: 0, medium: 0, complex: 0, common: false, teams: false, known: 'Exact' }, //"Can only view the web when given permissions." -- This is what you get when you share with specific person.
//
];
export const UnknownPerm = {
Name: 'Unknown Permission', simple: 6, medium: 6, complex: 6, common: false, teams: false, known: 'Unknown'
};
export const PermPriorityStyles = [
{ color: '' },
{ color: 'green' },
{ color: 'brown' },
{ color: 'red', fontWeight: 700 },
{ color: 'blue', fontWeight: 700 },
{ color: 'purple', fontWeight: 700 }, //priority 5
];
//# sourceMappingURL=Constants.js.map