Skip to content

Permissions Migrations #46

@djamesfar

Description

@djamesfar
  • bump dependency of tipoff/authorization to 2.5.0
  • Verify all permissions in the policies are included in the package permissions migration
  • Add arrays after every permission in that migration except delete to include the ‘Owner’ role
  • Also add the ‘Staff’ role to the array for every view permission

example from the Fees package:

    public function up()
    {
        $permissions = [
             'view fees' => ['Owner', 'Staff'],
             'create fees' => ['Owner'],
             'update fees' => ['Owner'],
             'delete fees' => [],   // Admin only
        ];

        $this->createPermissions($permissions);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions