# |
Jun 12th 2019, 09:52 |
neon1024 |
Then I can access that library class in helpers, controllers, models, etc |
# |
Jun 12th 2019, 09:52 |
neon1024 |
I’ve written a basic permissions library class which does all the permissions tests and configures the permissions by role setup |
# |
Jun 12th 2019, 09:51 |
neon1024 |
I have to implement all this soon, but I haven’t got to it just yet |
# |
Jun 12th 2019, 09:51 |
neon1024 |
Then in the helper match the permissions from the users session data |
# |
Jun 12th 2019, 09:51 |
neon1024 |
`if ($this->Permissions->has('seeFinance'){ echo $this->Form->control('money'); }` |
# |
Jun 12th 2019, 09:50 |
neon1024 |
I would just add a condition in the template, probably using a helper |
# |
Jun 12th 2019, 09:34 |
leon |
Hello guys, what is a good way, to disable the access to a field/column (or more than one) for a user/group? Is there already a standard way to realize this? (cake 3.7) |
# |
Jun 12th 2019, 08:40 |
neon1024 |
Hopefully the tournament isn’t won by the team who managed to play the most complete matches! |
# |
Jun 12th 2019, 08:39 |
neon1024 |
It is unseasonably rainy here |
# |
Jun 12th 2019, 08:38 |
admad |
yes :slightly_smiling_face: |
# |
Jun 12th 2019, 08:38 |
neon1024 |
@admad Oh? Did I miss some news? Is this about there being no reserve days? |
# |
Jun 12th 2019, 08:37 |
noel |
European Central Bank? |
# |
Jun 12th 2019, 08:36 |
admad |
@neon1024 Morning and screw ECB :slightly_smiling_face: |
# |
Jun 12th 2019, 08:31 |
neon1024 |
Morning all :wave: |
# |
Jun 11th 2019, 22:30 |
ricksaccous |
hmmmm |
# |
Jun 11th 2019, 22:30 |
ricksaccous |
is it possible to change the identifier configuration on the fly |
# |
Jun 11th 2019, 22:03 |
ricksaccous |
i mean the issue not the PR |
# |
Jun 11th 2019, 22:03 |
ricksaccous |
for posterity |
# |
Jun 11th 2019, 22:03 |
ricksaccous |
https://github.com/cakephp/authentication/issues/214 |
# |
Jun 11th 2019, 22:03 |
ricksaccous |
wow |
# |
Jun 11th 2019, 22:03 |
ricksaccous |
nah saw the pr and was able to fix it |
# |
Jun 11th 2019, 21:56 |
ricksaccous |
but not sure yet |
# |
Jun 11th 2019, 21:56 |
ricksaccous |
for form Authenticator |
# |
Jun 11th 2019, 21:56 |
ricksaccous |
i think the authenticator loginUrl might be bugged |
# |
Jun 11th 2019, 21:28 |
ricksaccous |
hmmm |
# |
Jun 11th 2019, 21:28 |
ricksaccous |
can i do it from the AuthenticationService |
# |
Jun 11th 2019, 21:28 |
ricksaccous |
of an authenticator |
# |
Jun 11th 2019, 21:28 |
ricksaccous |
how do i set the identifier |
# |
Jun 11th 2019, 19:52 |
challgren |
Sorry gotta jump on a conference call be back in 45 minutes but look at the ORM docs on book.cakephp.org |
# |
Jun 11th 2019, 19:52 |
rightscoreanalysis |
but it will be a rightJoin |
# |
Jun 11th 2019, 19:52 |
rightscoreanalysis |
I can get a similar result with a contain and a condition |
# |
Jun 11th 2019, 19:51 |
challgren |
I believe its whatever you have your relationship setup as |
# |
Jun 11th 2019, 19:51 |
challgren |
If you have your relationships setup |
# |
Jun 11th 2019, 19:51 |
rightscoreanalysis |
contain is rightJoin isn't it? |
# |
Jun 11th 2019, 19:51 |
challgren |
The contain will do that |
# |
Jun 11th 2019, 19:50 |
rightscoreanalysis |
what if I want a leftJoin though? |
# |
Jun 11th 2019, 19:50 |
challgren |
`$ListingsTable->find()->contain(['ListingImages'])` |
# |
Jun 11th 2019, 19:48 |
rightscoreanalysis |
which doesn't work incidently |
# |
Jun 11th 2019, 19:48 |
rightscoreanalysis |
$query->select(['ListingImages.*']); |
# |
Jun 11th 2019, 19:47 |
rightscoreanalysis |
eg. $query->select(['ListingImages.id', 'Listings.id']); |
# |
Jun 11th 2019, 19:46 |
rightscoreanalysis |
hi - anyone know if when I am building an array can I use a wildcard to select all table columns, instead of explicitly specifying each |