Chinaunix首页 | 论坛 | 博客
  • 博客访问: 847677
  • 博文数量: 366
  • 博客积分: 10267
  • 博客等级: 上将
  • 技术积分: 4290
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-24 14:04
文章分类

全部博文(366)

文章存档

2012年(366)

分类: 系统运维

2012-03-16 17:46:04

bug描述

project_tree_view是redmine的一个插件,可以允许将redmine中的项目按照目录树的方式显示,更加的直观,但是此插件bug,安装此插件之后,在点击到项目首页后,点“详情”“报表”,会出现如下错误:

中文错误 403

对不起,您无权访问此页面。

英文错误

403 You are not authorized to access this page

解决 第一步、修改代码

将 vendor/plugins/projects_tree_view/app/views/projects/show.rhtml (lines 115-116)中的如下内容:

<%= link_to(l(:label_details), {:controller => 'timelog', :action => 'details', :project_id => @project}) %> | <%= link_to(l(:label_report), {:controller => 'timelog', :action => 'report', :project_id => @project}) %>

修改为如下:

<%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> | <%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => @project}) %>

第二步、重启redmine,问题解决

特别提醒

另外说明,project_tree_view最新下载已经改换地址了,redmine中的版本已经不是最新的,最新的版本应该是0.0.4,但是问题依然存在,需要修改,最新地址为:

此问题真是恶心,困扰了我大概4个月了, 终于解决了,谢天谢地,欢迎交流redmine使用新的,解决之法。

 

阅读(614) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~