# |
Jun 28th 2019, 02:28 |
challgren |
@nuzulfikrie check out cakedc/users plugin |
# |
Jun 28th 2019, 02:16 |
nuzulfikrie |
hi support , i am n00b with Cakephp using cakephp/authentication from https://github.com/cakephp/authentication. How do you configure the controllers ?. |
# |
Jun 27th 2019, 21:27 |
stephenzgalbraith |
Does a 'through' association require an auto incremented id column in the join table? I am trying to use a through association and the data becomes available in the '_joinData |
# |
Jun 27th 2019, 21:14 |
neothermic |
and I can't get it to actually invoke it successfuly |
# |
Jun 27th 2019, 21:14 |
neothermic |
meh, trying to invoke cake's console via systemd's timers |
# |
Jun 27th 2019, 18:24 |
ricksaccous |
i see |
# |
Jun 27th 2019, 18:24 |
vossen.steven |
yea i use it as top level only atm as well, since other stuff are always on a per client basis |
# |
Jun 27th 2019, 18:20 |
ricksaccous |
i'm just worried about dealing with this when i have those special permissions, but i suppose that might be a different set of permissions, and whatever i have now is sufficient for top level access |
# |
Jun 27th 2019, 18:20 |
ricksaccous |
@vossen.steven thanks for the suggestion though, that's helpful |
# |
Jun 27th 2019, 18:13 |
ricksaccous |
I'm guessing I'll have to use multiple policies when i get to those points |
# |
Jun 27th 2019, 18:12 |
ricksaccous |
I will also have special case permissions that affect other aspects, ie do not show x in view or modify this query in the controller |
# |
Jun 27th 2019, 18:12 |
vossen.steven |
yup |
# |
Jun 27th 2019, 18:12 |
ricksaccous |
or if you go levels down, it goes down to levels of that permission? |
# |
Jun 27th 2019, 18:12 |
ricksaccous |
for example |
# |
Jun 27th 2019, 18:12 |
ricksaccous |
ah so if it's just plugin you only go to plugin level? |
# |
Jun 27th 2019, 18:11 |
vossen.steven |
i do the same ish but I use a combination of plugin/controller/action |
# |
Jun 27th 2019, 18:11 |
ricksaccous |
what's a better solution? |
# |
Jun 27th 2019, 18:10 |
ricksaccous |
might get unwieldy if i need special cases/etc for each url |
# |
Jun 27th 2019, 18:10 |
ricksaccous |
i check what they have in the policy and allow them based on url |
# |
Jun 27th 2019, 18:10 |
ricksaccous |
basically these will plop out a list and users can select these permissions |
# |
Jun 27th 2019, 18:10 |
ricksaccous |
so these are kind of how i organized my permissions, i'm using the authorize plugin and one request policy, is this a horrible way to do it? |
# |
Jun 27th 2019, 18:09 |
ricksaccous |
Permissions |
# |
Jun 27th 2019, 16:34 |
jeremyharris |
that is the same error :slightly_smiling_face: just without header errors. I think the code you posted above is fine |
# |
Jun 27th 2019, 16:32 |
nudl3ss |
the code that i speak is in the beginnig of the action upload and verify where is defined new $client |
# |
Jun 27th 2019, 16:32 |
nudl3ss |
And now I dont know, i think i didnt change anything is giving me this err |
# |
Jun 27th 2019, 16:25 |
jeremyharris |
I’m not sure where that code is, but the error looks like it’s happening after you POST the upload |
# |
Jun 27th 2019, 16:24 |
nudl3ss |
if i dump in the action what data is sent from ajax is all fine like normal formdata |
# |
Jun 27th 2019, 16:23 |
nudl3ss |
$server = Router::url(array('controller' => 'Tus', 'action' => 'server')); $client = new \TusPhp\Tus\Client($server); |
# |
Jun 27th 2019, 16:23 |
nudl3ss |
is it possible to be from this line here |
# |
Jun 27th 2019, 16:21 |
jeremyharris |
that looks like an error caused by the library, perhaps you aren’t submitting the data as expected by the server? |
# |
Jun 27th 2019, 16:18 |
nudl3ss |
and yeah i removed redis but its the same |
# |
Jun 27th 2019, 16:18 |
nudl3ss |
yeah they are writable, i used normal upload before and it was all fine |
# |
Jun 27th 2019, 16:16 |
nudl3ss |
This is the response that i get |
# |
Jun 27th 2019, 16:00 |
jeremyharris |
lastly, the example uses redis. are you using redis? perhaps you should leave that blank for file based caching first |
# |
Jun 27th 2019, 15:59 |
jeremyharris |
also, are you sure your files directory is writable by the server? |
# |
Jun 27th 2019, 15:59 |
jeremyharris |
@nudl3ss can you post the error you are getting? |
# |
Jun 27th 2019, 15:49 |
nudl3ss |
server here |
# |
Jun 27th 2019, 15:47 |
slackebot |
<nudl3ss> |
# |
Jun 27th 2019, 15:45 |
slackebot |
<nudl3ss> |
# |
Jun 27th 2019, 15:38 |
ricksaccous |
i didn't read through the whole thing |
# |
Jun 27th 2019, 15:38 |
ricksaccous |
and you might have to hook the endpoints in with the js or something |