Q&A

라이믹스 누리고 모듈 관리자 추가 설정

2025.04.03 11:56
27
0
0
CMS/프레임워크 Rhymix 2.1
개발 언어 PHP 8.4

일명 누리고 모듈-이라곤 하지만 실제로 동작하기 위해서는 여러가지 모듈 패키지로 이뤄져있습니다-을 사용하는데

추가로 관리자를 등록해주고 싶습니다.

특정 회원이 상품을 추가할 수 있도록 cympusadmin 모듈, nproduct 모듈에 관리자로 등록했지만,

상품 등록 버튼을 누르면 (접속주소 : index.php?mid=[nproduct모듈명]&act=dispNproductAdminInsertItem )

 

'요청한 기능을 실행할 수 있는 권한이 없습니다.'

 

라고 뜹니다.

 

그리고,

도메인/shopadmin 으로는 접속화면이 뜨지만

도메인/index.php?module=cympusadmin 으로 접속하면 위와 마찬가지 화면이 뜹니다.

 

cympusadmin 모듈의 class.php의 init 함수 등에 디버깅 코드를 심어봤지만 마찬가지라서

더 확인해보니,

 

classes/module/ModuleObject.class.php

 

cympusadmin 모듈에 접근하려면 위 파일의 setPrivileges() 함수가 먼저 체크해서 $grant

권한이 없어서 그런거 같더군요. 계속 확인해보니 이 부분은 아래 파일에서..

 

modules/cympusadmin/conf/module.xml

 

기존코드

<permissions>
    <permission action="dispCympusadminAdminIndex" target="manager" />
</permissions>

 

변경된코드

<permissions>
    <permission action="dispCympusadminAdminIndex" target="guest" />
    <permission action="dispCympusadminAdminModInstList" target="guest" />
    <permission action="dispCympusadminAdminInsertModInst" target="guest" />
</permissions>

 

이런 식으로 target과 action을 해당하는 모듈의 액션마다 지정을 해줘야 하는거 같더군요.. 

일단 이런 식으로 등록이 필요한 모듈에 원하는 액션값에 해당하는 타겟을 지정해주면 해결은 될 거 같습니다.

 

예를 들어, dispNproductAdminInsertItem 이 액션 권한을 얻으려면

해당 유저를 모듈 nproduct 모듈에서 아래와 같이 등록해주면 되는거 같더군요.

 

<permissions>
    <permission action="dispNproductAdminInsertItem" target="manager" />
</permissions>

 

image.png

 

target은 manager, guest만 있는거 같습니다. 그래서 모듈관리자인 경우에는 manager로 하면 됩니다.

이렇게 하면 상품등록도 설정한 관리자가 등록이 가능한 거 같더군요.

 

이렇게 해서 test라는 유저가 모듈관리자로 등록이 됐고 글등록을 하면 이제 정상적으로 글작성화면이 뜨긴 하는데

실제 글등록을 하면 다시..

 

'요청한 기능을 실행할 수 있는 권한이 없습니다.'

 

라는 메세지가 뜹니다.

글등록 폼에 act는 procNproductAdminInsertItem 입니다.

퍼미션이 빠진거 같아서,

<permissions>
    <permission action="dispNproductAdminConfig" target="manager" />
    <permission action="dispNproductAdminModInstList" type="view" target="manager" />
    <permission action="dispNproductAdminInsertModInst" type="view" target="manager" />
    <permission action="dispNproductAdminCategoryManagement" target="manager" />
    <permission action="dispNproductAdminInsertItem" target="manager" />
    <permission action="dispNproductAdminItemList" target="manager" />
    <permission action="dispNproductAdminUpdateItem" target="manager" />
    <permission action="dispNproductAdminAdditionSetup" target="manager" />
    <permission action="dispNproductAdminDisplayCategories" target="manager" />
    <permission action="dispNproductAdminItemExtraSetup" target="manager" />
    <permission action="dispNproductAdminSkinInfo" target="manager" />
    <permission action="dispNproductAdminMobileSkinInfo" target="manager" />
    <permission action="dispNproductAdminBulkItems" target="manager" />
    <permission action="dispNproductAdminItemListExcelDownload" target="manager" />
    <permission action="dispNproductAdminListSetup" target="manager" />
    <permission action="dispNproductAdminDetailListSetup" target="manager" />
    <permission action="dispNproductAdminGroupDiscount" target="manager" />
    <permission action="dispNproductAdminGrantInfo" target="manager" />
    <permission action="dispNproductAdminMemberDiscount" target="manager" />
    <permission action="dispNproductAdminQuantityDiscount" target="manager" />

    <permission action="procNproductAdminConfig" target="manager" />
    <permission action="procNproductAdminInsertModInst" target="manager" />
    <permission action="procNproductAdminDeleteModInst" target="manager" />
    <permission action="procNproductAdminInsertDisplayCategory" target="manager" />
    <permission action="procNproductAdminInsertDisplayItem" target="manager" />
    <permission action="procNproductAdminUpdateDCListOrder" target="manager" />
    <permission action="procNproductAdminUpdateDIListOrder" target="manager" />
    <permission action="procNproductAdminDeleteDisplayCategory" target="manager" />
    <permission action="procNproductAdminUpdateDisplayCategory" target="manager" />
    <permission action="procNproductAdminInsertItemExtra" target="manager" />
    <permission action="procNproductAdminInsertDeliveryInfo" target="manager" />
    <permission action="procNproductAdminUpdateItemExtraOrder" target="manager" />
    <permission action="procNproductAdminUpdateItemListOrder" target="manager" />
    <permission action="procNproductAdminDeleteItemExtra" target="manager" />
    <permission action="procNproductAdminDeleteDisplayItem" target="manager" />
    <permission action="procNproductAdminDeleteItem" target="manager" />
    <permission action="procNproductAdminUpdateItemList" target="manager" />
    <permission action="procNproductAdminInsertListConfig" target="manager" />
    <permission action="procNproductAdminInsertDetailListConfig" target="manager" />
    <permission action="procNproductAdminGroupDiscount" target="manager" />
    <permission action="procNproductAdminMemberDiscount" target="manager" />
    <permission action="procNproductAdminQuantityDiscount" target="manager" />
    <permission action="procNproductAdminInsertItem" target="manager" />
    <permission action="procNproductAdminUpdateItem" target="manager" />
    <permission action="procNproductAdminDeleteMemberDiscount" target="manager" />
    <permission action="procNproductAdminDeleteQuantityDiscount" target="manager"/>

    <permission action="getNproductAdminInsertItemExtra" target="manager" />
    <permission action="getNproductAdminInsertDeliveryInfo" target="manager" />
    <permission action="getNproductAdminDisplayCategory" target="manager" />
    <permission action="getNproductAdminDeleteModInst" target="manager" />
    <permission action="getNproductAdminDeleteItem" target="manager" />
    <permission action="getNproductAdminInsertOptions" target="manager" />
    <permission action="getNproductAdminAllCategories" target="manager" />
    <permission action="dispNproductIndex" type="view" target="manager" />
    <permission action="dispNproductItemList" target="manager" />
    <permission action="dispNproductItemDetail" target="manager" />
    <permission action="dispNproductReplyComment" target="manager" />
    <permission action="dispNproductReviewModify" target="manager" />

    <permission action="procNproductInsertCategory" target="manager" />
    <permission action="procNproductInsertOrder" target="manager" />
    <permission action="procNproductInsertComment" target="manager" />
    <permission action="procNproductInsertReview" target="manager" />
    <permission action="procNproductInsertOptions" target="manager" />
    <permission action="procNproductAddToCart" target="manager" />
    <permission action="procNproductAddToFavorite" target="manager" />
    <permission action="procNproductAddItemsToCart" target="manager" />
    <permission action="procNproductAddItemsToFavorites" target="manager" />
    <permission action="procNproductAddItemsToCartObj" target="manager" />
    <permission action="procNproductUpdateCategory" target="manager" />
    <permission action="procNproductMoveCategory" target="manager" />
    <permission action="procNproductUpdateItem" target="manager" />
    <permission action="procNproductUpdateItemFile" target="manager" />
    <permission action="procNproductUpdateQuantity" target="manager" />
    <permission action="procNproductDeleteComment" target="manager" />
    <permission action="procNproductDeleteCategory" target="manager" />
    <permission action="procNproductDeleteReview" target="manager" />
    <permission action="procNproductUpdateReview" target="manager" />
    <permission action="procNproductBeginCheckOut" target="manager" />
    <permission action="procNproductViewContent" target="manager" />
    <permission action="procNproductAddPayment" target="manager" />

    <permission action="dispNproductAdminInsertItem" target="manager" />
    <permission action="dispNproductAdminItemList" target="manager" />
    <permission action="dispNproductItemDetail" target="manager" />
    <permission action="dispNproductAdminUpdateItem" target="manager" />
    <permission action="dispNproductAdminAdditionSetup" target="manager" />
    <permission action="dispNproductAdminDisplayCategories" target="manager" />
    <permission action="dispNproductAdminItemExtraSetup" target="manager" />
    <permission action="procNproductAdminInsertItem" target="manager" />
    <permission action="procNproductAdminInsertItemExtra" target="manager" />
    <permission action="procNproductAdminInsertModInst" target="manager" />
    <permission action="procNproductAdminInsertDisplayCategory" target="manager" />
    <permission action="procNproductAdminInsertDisplayItem" target="manager" />
    <permission action="procNproductAdminInsertDeliveryInfo" target="manager" />
    <permission action="procNproductAdminInsertListConfig" target="manager" />
    <permission action="procNproductAdminInsertDetailListConfig" target="manager" />
    <permission action="procNproductAdminUpdateItem" target="manager" />
    <permission action="procNproductAdminUpdateItemList" target="manager" />
    <permission action="procNproductAdminUpdateItemListOrder" target="manager" />
    <permission action="procNproductAdminUpdateItemExtraOrder" target="manager" />

</permissions>

 

이렇게 왠만한건 등록을 했는데 글 등록은 되는데, 글 등록 후 업로드한 화면이 안뜨고,

또! 

'요청한 기능을 실행할 수 있는 권한이 없습니다.'

라는 메세지가 뜨더군요.

 

등록된 글 아이템 번호를 확인해보니

2323

2325

2327

이렇게 글 등록이 되는데, 

글 등록한 후 url에는 2324,2326,2328 이런 식으로 불러오는거 같더군요.

아마 글이 등록되고, 바로 해당 글을 보여주지 않는건지, 못하는건지

이제부터 어디를 뒤져봐야할까요. 

 

eond Lv. 12
# 라이믹스 스킨 제작은 어디? >>>> XE 레이아웃, 라이믹스 스킨제작은 이온디에서 커스터마이징해드립니다.
# 빠른 라이믹스 커뮤니티용 호스팅을 찾고 계신가요? >>>> 이온디호스팅 서비스는 PHP8 & Redis 서버 캐시를 활용하여 라이믹스에 최적화된 호스팅 서비스를 제공해드립니다. (서버세팅시 웹패널, 내도메인메일서비스도 함께 구축해드립니다.)
https://eond.com

댓글 0