Skip to content

Releases: santigarcor/laratrust

6.1.0

29 May 23:06
Compare
Choose a tag to compare

Add roles restrictions in the admin panel

This release enables the possibility to add restriction to roles in the admin panel.
Now you can define which roles shouldn't be editable, removable or deletable in the admin panel.

In order to use this feature if you installed the 6.0 version you simply have to add this to the panel section in your config/laratrust.php file:

       /*
        |--------------------------------------------------------------------------
        | Add restriction to roles in the panel
        |--------------------------------------------------------------------------
        |
        | Configure which roles can not be editable, deletable and removable.
        | To add a role to the restriction, use name of the role here.
        |
        */
        'roles_restrictions' => [
            // The user won't be able to remove roles already assigend to users.
            'not_removable' => [],

            // The user won't be able to edit the role and the permissions assigned.
            'not_editable' => [],

            // The user won't be able to delete the role.
            'not_deletable' => [],
        ],

6.0.0

06 May 22:45
Compare
Choose a tag to compare
  • Add simple admin panel to manage roles, permissions and roles/permissions assignment to the users
  • Change how the Seeder works, in order to only use the role structure we had before
  • Remove the can method so we now support gates and policies out of the box
  • Add withoutRole and withoutPermission scopes
  • Add support to receive multiple roles and permisions in the whereRoleIs and wherePermissionIs methods.
  • Laratrust is now using semver.

Support for Laravel 7.0

09 Mar 08:20
Compare
Choose a tag to compare
5.2.8

Merge branch 'master' into 5.2

5.2.7

19 Feb 13:28
Compare
Choose a tag to compare

Add

  • Rollback teams' foreign keys and table in migrations

5.2.6

08 Nov 13:55
Compare
Choose a tag to compare

Add

  • Method to get (cached) roles of user (#378)
  • Allow unique cache key for each user models (#360)

5.2.5

22 Oct 14:56
Compare
Choose a tag to compare

Add

  • Provide option to allow the response text when using abort handler (#370)

Support for Laravel 6.0

03 Sep 14:12
Compare
Choose a tag to compare
5.2.3

Merge branch 'master' into 5.2

5.2.2: Merge pull request #349 from dragonfire1119/master

15 May 18:22
f9a7036
Compare
Choose a tag to compare

Fix

  • Ability returning false when using teams and validate all. #348

5.2.1: Merge pull request #343 from lexxyungcarter/master

17 Apr 16:11
600aa87
Compare
Choose a tag to compare

Fix

  • Removing Laratrust observables #339
  • Fill call method on null #343

5.1.0

31 Jan 00:24
Compare
Choose a tag to compare
  • Add two types of permissions/roles checkers, the default one we have always used and another one directly doing queries to the DB.
  • Add possibility to flash data to the session if the middleware fails.
  • Add orWherePermissionIs method.
  • Added cache to configuration file.