97 lines
No EOL
3.9 KiB
Python
97 lines
No EOL
3.9 KiB
Python
ADMIN_PERMISSIONS = []
|
|
|
|
# Client Administration Permissions
|
|
|
|
ADMIN_PERMISSIONS.append(("read_clients", "Read Clients"))
|
|
ADMIN_PERMISSIONS.append(("modify_clients", "Modify Clients"))
|
|
ADMIN_PERMISSIONS.append(("delete_clients", "Delete Clients"))
|
|
ADMIN_PERMISSIONS.append(("create_clients", "Create Clients"))
|
|
|
|
# Client Group Administration Permissions
|
|
|
|
ADMIN_PERMISSIONS.append(("read_clientgroups", "Read Client Groups"))
|
|
ADMIN_PERMISSIONS.append(("modify_clientgroups", "Modify Client Groups"))
|
|
ADMIN_PERMISSIONS.append(("delete_clientgroups", "Delete Client Groups"))
|
|
ADMIN_PERMISSIONS.append(("create_clientgroups", "Create Client Groups"))
|
|
|
|
# Quoting Permissions
|
|
|
|
ADMIN_PERMISSIONS.append(("read_quotes", "Read Quotes"))
|
|
ADMIN_PERMISSIONS.append(("modify_quotes", "Modify Quotes"))
|
|
ADMIN_PERMISSIONS.append(("delete_quotes", "Delete Quotes"))
|
|
ADMIN_PERMISSIONS.append(("create_quotes", "Create Quotes"))
|
|
|
|
# Invoicing Permissions
|
|
|
|
ADMIN_PERMISSIONS.append(("read_invoices", "Read Invoices"))
|
|
ADMIN_PERMISSIONS.append(("modify_invoices", "Modify Invoices"))
|
|
ADMIN_PERMISSIONS.append(("delete_invoices", "Delete Invoices"))
|
|
ADMIN_PERMISSIONS.append(("create_invoices", "Create Invoices"))
|
|
|
|
# Billable Permissions
|
|
|
|
ADMIN_PERMISSIONS.append(("read_billables", "Read Billable Items"))
|
|
ADMIN_PERMISSIONS.append(("modify_billables", "Modify Billable Items"))
|
|
ADMIN_PERMISSIONS.append(("delete_billables", "Delete Billable Items"))
|
|
ADMIN_PERMISSIONS.append(("create_billables", "Create Billable Items"))
|
|
|
|
# Product Permissions
|
|
|
|
ADMIN_PERMISSIONS.append(("read_products", "Read Products"))
|
|
ADMIN_PERMISSIONS.append(("modify_products", "Modify Products"))
|
|
ADMIN_PERMISSIONS.append(("delete_products", "Delete Products"))
|
|
ADMIN_PERMISSIONS.append(("create_products", "Create Products"))
|
|
|
|
# Product Group Permissions
|
|
|
|
ADMIN_PERMISSIONS.append(("read_productgroups", "Read Product Groups"))
|
|
ADMIN_PERMISSIONS.append(("modify_productgroups", "Modify Product Groups"))
|
|
ADMIN_PERMISSIONS.append(("delete_productgroups", "Delete Product Groups"))
|
|
ADMIN_PERMISSIONS.append(("create_productgroups", "Create Product Groups"))
|
|
|
|
# Backend User Permissions
|
|
|
|
ADMIN_PERMISSIONS.append(("read_admins", "Read Administrators"))
|
|
ADMIN_PERMISSIONS.append(("modify_admins", "Modify Administrators"))
|
|
ADMIN_PERMISSIONS.append(("delete_admins", "Delete Administrators"))
|
|
ADMIN_PERMISSIONS.append(("create_admins", "Create Administrators"))
|
|
|
|
# Brand Permissions
|
|
|
|
ADMIN_PERMISSIONS.append(("read_brands", "Read Brands"))
|
|
ADMIN_PERMISSIONS.append(("modify_brands", "Modify Brands"))
|
|
ADMIN_PERMISSIONS.append(("delete_brands", "Delete Brands"))
|
|
ADMIN_PERMISSIONS.append(("create_brands", "Create Brands"))
|
|
|
|
# Firewall Permissions
|
|
|
|
ADMIN_PERMISSIONS.append(("read_firewall", "Read Firewall Rules"))
|
|
ADMIN_PERMISSIONS.append(("modify_firewall", "Modify Firewall Rules"))
|
|
ADMIN_PERMISSIONS.append(("delete_firewall", "Delete Firewall Rules"))
|
|
ADMIN_PERMISSIONS.append(("create_firewall", "Create Firewall Rules"))
|
|
|
|
# Currency Permissions
|
|
|
|
ADMIN_PERMISSIONS.append(("read_currencies", "Read Currencies"))
|
|
ADMIN_PERMISSIONS.append(("modify_currencies", "Modify Currencies"))
|
|
ADMIN_PERMISSIONS.append(("delete_currencies", "Delete Currencies"))
|
|
ADMIN_PERMISSIONS.append(("create_currencies", "Create Currencies"))
|
|
|
|
# Tax Permissions
|
|
|
|
ADMIN_PERMISSIONS.append(("read_taxes", "Read Taxes"))
|
|
ADMIN_PERMISSIONS.append(("modify_taxes", "Modify Taxes"))
|
|
ADMIN_PERMISSIONS.append(("delete_taxes", "Delete Taxes"))
|
|
ADMIN_PERMISSIONS.append(("create_taxes", "Create Taxes"))
|
|
|
|
# Database Setting Permissions
|
|
|
|
ADMIN_PERMISSIONS.append(("read_dbsettings", "Read Database Settings"))
|
|
ADMIN_PERMISSIONS.append(("modify_dbsettings", "Modify Database Settings"))
|
|
ADMIN_PERMISSIONS.append(("delete_dbsettings", "Delete Database Settings"))
|
|
ADMIN_PERMISSIONS.append(("create_dbsettings", "Create Database Settings"))
|
|
|
|
# Superuser Permissions
|
|
|
|
ADMIN_PERMISSIONS.append(("grant_permissions", "Grant Permissions"))
|
|
ADMIN_PERMISSIONS.append(("grant_all_permissions", "Grant all Permissions")) |