[support] Hide ckk field to anonymous user
Marolijo - Pol maresma
marolijo at yahoo.es
Fri Nov 30 15:52:33 UTC 2007
Thank's but I tried it and doesn't work form me under Drupal5.3.
When I select the permissions under access control and put the field on
Contemplate's Body it allways apear on the node display.
I found a simply solution because I only wanna control if the user is
registered, put it on the template's body:
<?php
global $user;
if ($user->name<>''){
print check_plain($node->field_informacio[0]['value']);
};
?>
Is it secure?
Thank's for all. Gràcies! ;-)
-----Mensaje original-----
De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre
de Walter Garcia-Fontes
Enviado el: divendres, 30 / novembre / 2007 13:56
Para: support at drupal.org
Asunto: Re: [support] Hide ckk field to anonymous user
Yes, the module is called "CCK Field permissions",
--
Walter Garcia-Fontes
Barcelona
--
[ Drupal support list | http://lists.drupal.org/ ]
__________ Informacisn de NOD32, revisisn 2695 (20071130) __________
Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com
More information about the support
mailing list