# |
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 |
# |
Jun 11th 2019, 18:57 |
challgren |
<script>alert(‘This is injected js’);</script> |
# |
Jun 11th 2019, 18:56 |
ricksaccous |
yeah, you'll have to think of things like that |
# |
Jun 11th 2019, 18:56 |
challgren |
But doing so is risky because anyone that can insert a record into the db can potentially introduce javascript |
# |
Jun 11th 2019, 18:56 |
ricksaccous |
then when you display it don't use h() on it |
# |
Jun 11th 2019, 18:55 |
ricksaccous |
save it normally |
# |
Jun 11th 2019, 18:55 |
noel |
How can one save HTML content to the db and then get it out again and display it as HTML content in the template |