Re: usage of mapActions()

2008-12-29 Thread ddaffy

try using it this way: $this-Auth-mapActions(array
(NAME_OF_THE_ACTION_1 = TYPE_OF_THE_ACTION, NAME_OF_THE_ACTION_2 =
TYPE_OF_THE_ACTION, ...)); where TYPE_OF_THE_ACTION is 'create',
'read', 'update' or 'delete'.

also, AFAIK, mapActions will have effect only if you are using Acl
with Auth in actions/crud auth mode.

On Dec 29, 4:49 am, Arak Tai'Roth nielsen.dus...@gmail.com wrote:
 So I also looked over the api and everything that I am doing looks
 right to me as far as what the api is expecting to receive. However
 still when I click the link to take me to that action when I am logged
 in it just refreshes the current page and does nothing.

 Any help would be appreciated.

 On Dec 28, 7:24 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote:



  I guess I should probably note that the line I gave that I am using is
  in my beforeFilter function in my Builds Controller. I also tried it
  in the App Controller, but that didn't make a difference either.

  On Dec 28, 2:55 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote:

   So I have this problem. I have a controller called BuildsController, I
   have multiple edit pages within this controller as I have to edit
   multiple data through it, but the data comes from multiple models, not
   just the Build model.

   Anyways, so I have an edit() function, but also an editDescription()
   function. When I login as an administrator I can access the edit
   function, but I can't access the editDescription function until I
   added it into $this-Auth-allow. But then it can be accessed without
   logging in, which isn't what I want.

   So I was looking around and found the mapActions ability and wanted to
   try that, so I have $this-Auth-mapActions(array('update' = array
   ('editDescription')))

   However that isn't working and I don't know if it's the way I am using
   it or what it is. Any help on this matter would be appreciated, thanks
   in advance.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: usage of mapActions()

2008-12-29 Thread Arak Tai'Roth

Yea I do have that setup and I did try doing it that way as well,
however it was a no go again. So I actually just recently said screw
it and just made a new controller to do what I am doing and set it all
up that way instead, to something that actually works. Might be better
this way either, at least now I'm not repeating the same
editDescription function in a majority of my controllers.

On Dec 29, 3:41 am, ddaffy dda...@gmail.com wrote:
 try using it this way: $this-Auth-mapActions(array
 (NAME_OF_THE_ACTION_1 = TYPE_OF_THE_ACTION, NAME_OF_THE_ACTION_2 =
 TYPE_OF_THE_ACTION, ...)); where TYPE_OF_THE_ACTION is 'create',
 'read', 'update' or 'delete'.

 also, AFAIK, mapActions will have effect only if you are using Acl
 with Auth in actions/crud auth mode.

 On Dec 29, 4:49 am, Arak Tai'Roth nielsen.dus...@gmail.com wrote:

  So I also looked over the api and everything that I am doing looks
  right to me as far as what the api is expecting to receive. However
  still when I click the link to take me to that action when I am logged
  in it just refreshes the current page and does nothing.

  Any help would be appreciated.

  On Dec 28, 7:24 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote:

   I guess I should probably note that the line I gave that I am using is
   in my beforeFilter function in my Builds Controller. I also tried it
   in the App Controller, but that didn't make a difference either.

   On Dec 28, 2:55 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote:

So I have this problem. I have a controller called BuildsController, I
have multiple edit pages within this controller as I have to edit
multiple data through it, but the data comes from multiple models, not
just the Build model.

Anyways, so I have an edit() function, but also an editDescription()
function. When I login as an administrator I can access the edit
function, but I can't access the editDescription function until I
added it into $this-Auth-allow. But then it can be accessed without
logging in, which isn't what I want.

So I was looking around and found the mapActions ability and wanted to
try that, so I have $this-Auth-mapActions(array('update' = array
('editDescription')))

However that isn't working and I don't know if it's the way I am using
it or what it is. Any help on this matter would be appreciated, thanks
in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: usage of mapActions()

2008-12-28 Thread Arak Tai'Roth

I guess I should probably note that the line I gave that I am using is
in my beforeFilter function in my Builds Controller. I also tried it
in the App Controller, but that didn't make a difference either.

On Dec 28, 2:55 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote:
 So I have this problem. I have a controller called BuildsController, I
 have multiple edit pages within this controller as I have to edit
 multiple data through it, but the data comes from multiple models, not
 just the Build model.

 Anyways, so I have an edit() function, but also an editDescription()
 function. When I login as an administrator I can access the edit
 function, but I can't access the editDescription function until I
 added it into $this-Auth-allow. But then it can be accessed without
 logging in, which isn't what I want.

 So I was looking around and found the mapActions ability and wanted to
 try that, so I have $this-Auth-mapActions(array('update' = array
 ('editDescription')))

 However that isn't working and I don't know if it's the way I am using
 it or what it is. Any help on this matter would be appreciated, thanks
 in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: usage of mapActions()

2008-12-28 Thread Arak Tai'Roth

So I also looked over the api and everything that I am doing looks
right to me as far as what the api is expecting to receive. However
still when I click the link to take me to that action when I am logged
in it just refreshes the current page and does nothing.

Any help would be appreciated.

On Dec 28, 7:24 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote:
 I guess I should probably note that the line I gave that I am using is
 in my beforeFilter function in my Builds Controller. I also tried it
 in the App Controller, but that didn't make a difference either.

 On Dec 28, 2:55 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote:

  So I have this problem. I have a controller called BuildsController, I
  have multiple edit pages within this controller as I have to edit
  multiple data through it, but the data comes from multiple models, not
  just the Build model.

  Anyways, so I have an edit() function, but also an editDescription()
  function. When I login as an administrator I can access the edit
  function, but I can't access the editDescription function until I
  added it into $this-Auth-allow. But then it can be accessed without
  logging in, which isn't what I want.

  So I was looking around and found the mapActions ability and wanted to
  try that, so I have $this-Auth-mapActions(array('update' = array
  ('editDescription')))

  However that isn't working and I don't know if it's the way I am using
  it or what it is. Any help on this matter would be appreciated, thanks
  in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---