Posted by birwel on September 17, 2009 at 6:23pm
3 followers
Jump to:
| Project: | FAQ_Ask |
| Version: | 6.x-2.0-alpha1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
seems that checking t('ask question') as a permission can cause an error when using non-english installations.
<?php
if ($op == 'create') {
return user_access(t('ask question')) || user_access('answer question');
}
?>
Comments
#1
You are correct, that was an oversight when I fixed the incorrect usage a log time ago.
Committed to 6.x-2.x-dev.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.