Download & Extend

Possible permission check error

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

Status:active» fixed

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

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here