I think the user is wanting to hide or remove the 'Edit' button if the
user doesnt have the security privilege to 'edit'.
This is a View level requirement, as I understand it, and you will
have to execute 'if' statements for each button or link that security
is based on.
i.e
<?php if($sf_user->getGuardUser()-
>hasCredential('edit_the_module_element')) { ?>
<?php echo link_to('whatever action name', 'whatever_module/
whatever_action_name'); ?>
<?php } ?>
Is this what you are looking for?
On Apr 24, 6:05 pm, Richtermeister <[EMAIL PROTECTED]> wrote:
> Not sure if I understand this right, but wouldn't it be better to
> change the credentials the user has, instead of changing the
> requirements of the application? After all, for every button you can
> create a specific credential, and add this to the user on a DB level..
>
> hope this helps, sorry if I misunderstand.
>
> Daniel
>
> On Apr 23, 10:04 am, Haris Zukanović <[EMAIL PROTECTED]> wrote:
>
> > Well, I am having a problem with credentials being inside the yml's. I
> > am looking for a way to aviod this and put these inside the database.
> > My problem is simply that in production environment there is a constant
> > need of changing the security.yml but also generator.yml (so that
> > buttons for unavailable operations are not displayed).
> > This makes it difficult to maintain (merge) these yml files when doing
> > new frequent updates towards production evironment..
> > Any suggestions on how to proceed with respect to how it should be done
> > in symfony?
>
> > Ian P. Christian wrote:
> > > Haris Zukanović wrote:
>
> > >> Hi ppl,
>
> > >> We use symfony 1.0 I wanted to try out the sfGuardPlugin.
> > >> Does sfGuardPlugin rely on credentials that are written in yml files ?
>
> > > rely in what sense? It allows you to use secury.yml, yes - sfGuard uses
> > > the standard symfony credentials.
>
> > >> Does it work with admin generator ?
>
> > > Yes.
>
> > --
> > Haris Zukanovic
> > CEO
> > Software development and research
> > International Business Development, SOFTING ltd.
>
> > office +387 36 318 339
> > GSM +387 61 839 069
>
> >http://www.eu-softing.com
>
> > CONFIDENTIALITY NOTICE
> > This e-mail and any attached files, sent by a company e - mail system,
> > contains company confidential and/or privileged information and is intended
> > only for the person or entity to which it is addressed and only for the
> > purposes therein set forth. If you are not the intended recipient (or have
> > received this e-mail in error) please notify the sender immediately and
> > destroy this e-mail. Any unauthorized copying, disclosure, distribution or
> > other use of, or taking of any action in reliance upon, the material in
> > this e-mail by persons or entities other than the intended recipient is
> > strictly forbidden.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---