[drupal-devel] Permissions aren't transparent

Gabor Hojtsy gabor at hojtsy.hu
Mon Apr 18 13:53:36 UTC 2005


> foo_perm() {
>  return array('create foo' => t('Lets you create nodes of type foo.'),
>               'admin foo' => t('Lets you administer nodes of type foo.')
>              );
> }
>
> is the proposed structure.
>
> The idea is to not only display the additional blurb on the admin
> permission page, but also on a sub tab of the user profile pages (or
> directly on /user/n).

I think it is a good idea to have permission explained this way (it is 
much more case sensitive then what we have now with some help texts 
describing permissions). But if you would like to display this on the user 
page, it needs to have different wording, like:

   You are able to create content of type foo.

But this does not fit well on the admin page... You are not about to 
display the name of the permission to the user, are you?

Goba



More information about the drupal-devel mailing list