Authorization and per-subproject roles assignment (Myth::Auth?) |
@rmilecki Almost! `mayList()` is a model function - you can think of it like a directory: "Can the current user list files in this directory?" In your example above you probably want `if (! $company->mayRead())` - equivalent to "Can the current user view this specific file?"
Docs and examples are definitely on the list, but there's a lot of raw content I still need to create for the framework itself and these modules before I come back to some of the refining. I would love some community help, so if you find this module useful and want to make some recommendations or PRs please do! Even just hearing about what is confusing can be useful. (11-08-2020, 02:42 AM)nc03061981 Wrote: Why Auth and Permission in 2 other packages? I see no reason why that should be the case. Permits was designed specifically to work with another package for Authentication and general user Authorization, with Myth:Auth specifically in mind. The type of authorization offered by Permits is rather unique and not going to be applicable to as many projects as something like Myth:Auth. At the same time it would be silly to rewrite all the authentication code just to keep it "under one roof". |
Messages In This Thread |
Authorization and per-subproject roles assignment (Myth::Auth?) - by rmilecki - 11-07-2020, 04:32 PM
RE: Authorization and per-subproject roles assignment (Myth::Auth?) - by MGatner - 11-07-2020, 04:54 PM
RE: Authorization and per-subproject roles assignment (Myth::Auth?) - by rmilecki - 11-08-2020, 05:04 AM
RE: Authorization and per-subproject roles assignment (Myth::Auth?) - by nc03061981 - 11-08-2020, 02:42 AM
RE: Authorization and per-subproject roles assignment (Myth::Auth?) - by MGatner - 11-08-2020, 08:59 AM
|