# |
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 ? |
# |
Jul 12th 2017, 20:22 |
devito |
is there a way to access pending migrations in a view? I want to display to my admins fi there are pending migrations that need to be run |
# |
Jul 12th 2017, 20:18 |
nicolas.r |
Hi guys, i saw the function $this->Auth->allow(['add', 'logout']); But there is any function to not allow ? For example all a controller (unless admin) Do I need to add a function in all function of my controller to check authorization ? |
# |
Jul 12th 2017, 20:04 |
saeideng |
:loudspeaker: |
# |
Jul 12th 2017, 19:59 |
saeideng |
now |
# |
Jul 12th 2017, 19:59 |
saeideng |
in past i used locally `phpunit` but i can not use it |
# |
Jul 12th 2017, 19:58 |
saeideng |
how you test your core tests? |
# |
Jul 12th 2017, 19:58 |
saeideng |
i install it `phpunit` locally |
# |
Jul 12th 2017, 19:57 |
saeideng |
why |
# |
Jul 12th 2017, 19:57 |
saeideng |
but `phpunit` no |
# |
Jul 12th 2017, 19:57 |
saeideng |
works for me |
# |
Jul 12th 2017, 19:57 |
saeideng |
`vendor/bin/phpunit` |