[symfony-users] Re: Admin generator - removing all delete links

2010-11-24 Thread Manu
maybe it's because my pages are secured by sfDoctrineGuardPlugin ?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: Admin generator - removing all delete links

2010-11-23 Thread Manu
Thanks, that was what I was looking for. Why do you need to
forward404() on new and delete ? Could someone still execute those
actions even though the buttons are not there ?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


Re: [symfony-users] Re: Admin generator - removing all delete links

2010-11-23 Thread Gábor Fási
Provided that he knows the link, yes. Hiding the button does not mean
your action is inaccessible.

On Tue, Nov 23, 2010 at 10:45, Manu emmanuel.parf...@gmail.com wrote:
 Thanks, that was what I was looking for. Why do you need to
 forward404() on new and delete ? Could someone still execute those
 actions even though the buttons are not there ?

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com

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


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: Admin generator - removing all delete links

2010-11-23 Thread Manu
But, I tried that on my project, and all I got was a 500 internal
server error : _csrf_token [Required.]


On 23 nov, 10:48, Gábor Fási maerl...@gmail.com wrote:
 Provided that he knows the link, yes. Hiding the button does not mean
 your action is inaccessible.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: Admin generator - removing all delete links

2010-11-18 Thread Manu
I haven't found in the docs how to disable that particular action.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


Re: [symfony-users] Re: Admin generator - removing all delete links

2010-11-18 Thread Michał Piotrowski
Hi,

2010/11/18 Manu emmanuel.parf...@gmail.com:
 I haven't found in the docs how to disable that particular action.


It's my sfGuardUser config - it removes both new and delete
generator:
  class: sfDoctrineGenerator
  param:
config:
  actions: { _edit: ~ }
  form:
class: sfGuardUserAdminForm
display:
  NONE:   [username, password,
password_again, Profile]
  Permissions and groups: [is_active, is_super_admin,
groups_list, permissions_list]
  list:
actions: {}
batch_actions: {}
object_actions: { _edit: ~ }
  edit:
actions: { _list: ~, _save: ~}

?php

class sfGuardUserActions extends autoSfGuardUserActions
{
  public function executeNew(sfWebRequest $request)
  {
$this-forward404();
  }
  public function executeDelete(sfWebRequest $request)
  {
$this-forward404();
  }
}



 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com

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


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: Admin generator - removing all delete links

2010-11-17 Thread Massimiliano Arione
On 17 Nov, 11:24, Manu emmanuel.parf...@gmail.com wrote:
 I removed the delete link from the list page, but I just found out
 that there is a delete link at the bottom of every edit page ... How
 do I remove that one ?

Use generator.yml to hide delete actions (see docs)
Then, you should also override delete actions in your controller.

cheers
Massimiliano

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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