NZTA\SDLT\Traits\SDLTModelPermissions
Synopsis
trait SDLTModelPermissions
{
- // methods
- public bool canView()
- public bool canCreate()
- public bool canEdit()
- public bool canDelete()
Hierarchy
Used by
Methods
public
- canCreate() — Allow logged-in user to create an instance of the model
- canDelete() — Allow logged-in user to delete an instance of the model
- canEdit() — Allow logged-in user to edit an instance of the model
- canView() — Allow logged-in user to access the model