Posted by kiamlaluno on December 31, 2008 at 1:36pm
Jump to:
| Project: | Kaltura |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
When there is the need to create a menu callback accessible to anybody, it's enough to use 'access arguments' => array(TRUE). There is no need to use a function that just returns TRUE.
Normally, the permission used in such cases is access content; therefore the code becomes 'access arguments' => array('access content').
Comments
#1
The shorter way to define a menu callback that doesn't have a limited access is to use
<?php'access callback' => TRUE
?>
This is reported in the Drupal documentation, on the line where it says
#2
fixed in 6.x-1.4 and 5.x-1.3
#3
Automatically closed -- issue fixed for 2 weeks with no activity.