permission('read'):Bugs::permission('issue.read')) or trigger_error('You are not allowed to view this issue'); $update = $ctx?$ctx->permission('update'):Bugs::permission('issue.create'); $delete = $ctx?$ctx->permission('delete'):Bugs::permission('issue.delete'); ?>