Yii Framework Forum: Srbac問題求解 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Srbac問題求解 Rate Topic: -----

#1 User is offline   mars3228 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 19-April 13

Posted 19 April 2013 - 03:11 AM

大家好,我聽之前的前輩們推介用srbac這套插件,整体上來說都知道運作過程.也相當好用,但我現在卻卡在一個小問題上,求前輩們來解答一下,問題是我們進入srbac這套插件時,在debug mode是false時,是需要擁有superuser權限的人才能進的,但我又不想給每個人都有superuser權限,所以我就跟其實controller一樣的方法,建立task operation這些(在SBaseController中).去給予某些人進入srbac frontpage的權利,但是當這些用家進入後,卻是一頁空白頁面,但當我把superuser加給他是,他卻可以正常顯示.請問我在哪邊出錯
0

#2 User is offline   hiscaler 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 230
  • Joined: 17-October 09

Posted 22 April 2013 - 03:43 AM

分配有问题?
0

#3 User is offline   mars3228 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 19-April 13

Posted 22 April 2013 - 05:18 AM

我把Task的srbac/AuthitemAdministrating分配給某個角色,而srbac/AuthitemAdministrating內有的分別是:
srbac/AuthitemAssign
srbac/AuthitemAssignments
srbac/AuthitemAuto
srbac/AuthitemAutocomplete
srbac/AuthitemAutoCreateItems
srbac/AuthitemAutoDeleteItems
srbac/AuthitemClearObsolete
srbac/AuthitemConfirm
srbac/AuthitemCreate
srbac/AuthitemDelete
srbac/AuthitemDeleteObsolete
srbac/AuthitemEditAllowed
srbac/AuthitemFrontPage
srbac/AuthitemGetCleverOpers
srbac/AuthitemGetOpers
srbac/AuthitemGetRoles
srbac/AuthitemGetTasks
srbac/AuthitemInstall
srbac/AuthitemList
srbac/AuthitemManage
srbac/AuthitemSaveAllowed
srbac/AuthitemScan
srbac/AuthitemShow
srbac/AuthitemShowAssignments
srbac/AuthitemUpdate
即全部權限,但只有這些權限而沒有super user這個角色的話,進入後是一片空白,但只要給super user就沒問題><
感謝你回覆我,請問我是不是什麼步驟少了><
0

#4 User is offline   mars3228 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 19-April 13

Posted 22 April 2013 - 05:51 AM

Attached File  nosuperuser.png (32.08K)
Number of downloads: 1
這張圖是有權限但沒有super user角色的畫面.下面那些是log,但本來有的layout都沒有
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users