jotaelesalinas / laravel-adminless-ldap-auth

Authenticate users in Laravel against an adminless LDAP server
MIT License
210 stars 33 forks source link

Use Authorizable trait in LdapUser to facilitate use in authorization policies #53

Open LichP opened 3 years ago

LichP commented 3 years ago

Detailed description

The default User model class uses the Authorizable trait to provide the can and cannot methods for interacting with policy classes (see https://laravel.com/docs/8.x/authorization#via-the-user-model ). Adding this trait to the LdapUser class will allow us to to the same with ldap users.