Project: Okul Database · Hub: Okul Database — Reference

Reference: Roles & Permissions

Spatie RBAC package. Tables: roles, permissions, model_has_roles, model_has_permissions, role_has_permissions.


System Roles

Role SlugDisplay NameDescription
super-adminSüper AdminFull system access
itITTechnical staff
editorEditörContent management
salesSatışSales team
dataDataData/analytics team
financeFinansFinance team
pyPortföyPortfolio management
internStajyerIntern
agentÇağrıCall center agent
sales-supportSatış DestekSales support

Permissions by Category

School Management

PermissionDescription
view-schoolView school records
add-schoolCreate schools
edit-schoolEdit school data
delete-schoolDelete schools
view-school-productView school’s product/subscription
view-school-interactionsView CRM interactions
add-school-interactionsLog new interactions
edit-school-interactionsEdit interactions
delete-school-interactionsDelete interactions

Lead Management

PermissionDescription
view-leadView leads
edit-leadEdit lead data
add-leadCreate leads
delete-leadDelete leads
view-lead-pool-formView lead pool forms
add-lead-pool-formAdd lead pool forms
edit-lead-pool-formEdit lead pool forms
show-lead-pool-formShow lead pool form detail

Customer & Agreement Management

PermissionDescription
view-customer-agreementView agreements
add-customer-agreementCreate agreements
edit-customer-agreementEdit agreements
delete-customer-agreementDelete agreements
change-status-customer-agreementChange agreement status

Payment & Finance

PermissionDescription
view-paymentView payments
add-paymentCreate payments
edit-paymentEdit payments
delete-paymentDelete payments
repeat-paymentRe-trigger payment
view-sale-statisticView sales statistics

User Management

PermissionDescription
view-userView users
add-userCreate users
edit-userEdit users
delete-userDelete users

Content Management

PermissionDescription
view-article, add-article, edit-article, delete-articleArticle CRUD
view-gallery, add-gallery, edit-gallery, delete-galleryGallery CRUD
view-announcement, add-announcement, edit-announcementAnnouncement CRUD
PermissionDescription
send-mailSend emails
send-iysSubmit to IYS (consent registry)
add-iys, view-iysIYS management
okulcomtr-mailokul.com.tr branded email
product-mailProduct update emails

System Administration

PermissionDescription
view-role, add-role, edit-role, delete-roleRole management
view-permission, add-permission, edit-permission, delete-permissionPermission management
view-sale-supportSales support access
view-appointment-calendarAppointment calendar

Customer User Roles (B2B Portal)

These are NOT Spatie roles — they live in the configs table: type = 'customer_user_role'

item_iditem_valueDescription
1Panel YöneticisiB2B panel admin — full access
2Panel KullanıcısıB2B panel user — limited access

Customer User Titles

type = 'customer_user_title' — 37 entries total, sample:

item_iditem_valueEnglish
1Firma SahibiBusiness Owner
2Satış MüdürüSales Manager
3İşletme MüdürüOperations Manager
6Genel MüdürGeneral Manager
12YöneticiManager
22Finans MüdürüFinance Manager
37DiğerOther