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