修改只有管理员才能查看
This commit is contained in:
parent
0502eb16a6
commit
566f59c49e
|
@ -1,8 +1,7 @@
|
||||||
# 显示和清理系统日志
|
# 显示和清理系统日志
|
||||||
class SystemLogController < ApplicationController
|
class SystemLogController < ApplicationController
|
||||||
|
|
||||||
before_filter :require_login
|
before_filter :require_admin
|
||||||
before_filter :require_admin ,:only =>:clear
|
|
||||||
# 默认每页显示20条记录
|
# 默认每页显示20条记录
|
||||||
PER_PAGE = 20
|
PER_PAGE = 20
|
||||||
layout "base"
|
layout "base"
|
||||||
|
|
Loading…
Reference in New Issue