# |
Jul 12th 2017, 20:49 |
burzum |
is anyone here using the cakephp elastic search plugin for doing an aggregation (distinct like)? |
# |
Jul 12th 2017, 20:48 |
sturm |
Not as green as I am. |
# |
Jul 12th 2017, 20:47 |
nicolas.r |
i'm too newbie to answer you i guess |
# |
Jul 12th 2017, 20:47 |
nicolas.r |
no idea :P |
# |
Jul 12th 2017, 20:47 |
sturm |
@nicolas.r I don’t know how to answer that. I’m studying the “Restricting Bookmark Access” portion of the bookmarker tutorial. |
# |
Jul 12th 2017, 20:45 |
nicolas.r |
what kind of request ? |
# |
Jul 12th 2017, 20:45 |
ericadeefox |
it got went over in the basic app workshop this year at CakeFest |
# |
Jul 12th 2017, 20:43 |
nicolas.r |
@ericadeefox tell me if you remember ^^ |
# |
Jul 12th 2017, 20:43 |
sturm |
I’m guessing that `$this->request->getParam('pass.0')` should always return an *id* (if it exists)? |
# |
Jul 12th 2017, 20:41 |
ericadeefox |
there's a term for that, when you've got basically a separate branch of folders for admin privileges... I can't think of what the word is right now... |
# |
Jul 12th 2017, 20:33 |
sturm |
I’ll eventually need to deal with that on my Scheduling app. |
# |
Jul 12th 2017, 20:29 |
nicolas.r |
thx |
# |
Jul 12th 2017, 20:29 |
nicolas.r |
oh okey, I will take a look at |
# |
Jul 12th 2017, 20:28 |
devito |
you can specify on a grainular level what a user has access to |
# |
Jul 12th 2017, 20:28 |
devito |
i use the ACL plugin for that |
# |
Jul 12th 2017, 20:27 |
nicolas.r |
but dunno it |
# |
Jul 12th 2017, 20:27 |
nicolas.r |
I can put in all these function a redirect if is not admin but I think there is a better way |
# |
Jul 12th 2017, 20:27 |
nicolas.r |
not allow these function |
# |
Jul 12th 2017, 20:27 |
nicolas.r |
view, edit, delete etc.. |
# |
Jul 12th 2017, 20:27 |
nicolas.r |
Like all the function in the controller |
# |
Jul 12th 2017, 20:27 |
nicolas.r |
tell me, maybe you know, do you know how to not allow a page to a user? |
# |
Jul 12th 2017, 20:26 |
nicolas.r |
:slightly_smiling_face: |
# |
Jul 12th 2017, 20:26 |
devito |
ill give that a shot |
# |
Jul 12th 2017, 20:26 |
devito |
=D |
# |
Jul 12th 2017, 20:26 |
nicolas.r |
yup :) |
# |
Jul 12th 2017, 20:26 |
devito |
and then get a list of files |
# |
Jul 12th 2017, 20:26 |
nicolas.r |
so you can maybe, query on this table et show the last |
# |
Jul 12th 2017, 20:26 |
devito |
oooo |
# |
Jul 12th 2017, 20:26 |
devito |
right |
# |
Jul 12th 2017, 20:25 |
nicolas.r |
In your database, you can know the last migration right ? |
# |
Jul 12th 2017, 20:25 |
nicolas.r |
No I know what you can do ! |
# |
Jul 12th 2017, 20:25 |
cleptric |
Just look how it was implemented in the shell and port that logic into another class? |
# |
Jul 12th 2017, 20:25 |
nicolas.r |
Yes I understand ^^ |
# |
Jul 12th 2017, 20:24 |
devito |
but that can lead down a rabit hole i really dont wana go down.. |
# |
Jul 12th 2017, 20:24 |
devito |
was thinking about doing exec and the the above |
# |
Jul 12th 2017, 20:23 |
devito |
hehe no worries |
# |
Jul 12th 2017, 20:23 |
nicolas.r |
really i dont know sorry haha |
# |
Jul 12th 2017, 20:23 |
nicolas.r |
and "parse" it maybe |
# |
Jul 12th 2017, 20:23 |
nicolas.r |
I think you need to lauch a php script to launch this cmd no ? |
# |
Jul 12th 2017, 20:23 |
nicolas.r |
In a view |
# |
Jul 12th 2017, 20:23 |
nicolas.r |
@devito bin/cake migrations status ? |