0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[baserCMS]コンテンツ管理上でのアクセス制限のURLを確認したいとき

Posted at

baserCMS4系のコンテンツ管理画面上で、「コンテンツの新規追加」をアクセス制限したいURLを確認したい場面がありましたので、ちょっとしたTips残しておきます。

想定している対象者

  • baserCMSでウェブサイトを制作をしている方
  • PHPer

発生状況

  1. baserCMSの「コンテンツの新規追加」をクリックしたときに表示される選択内容を制限したい

環境

  • baserCMS 4.1.2(4系全般)

対処

  • /lib/Baser/View/Helper/BcContentsHelper.php

setup() 内の $setting['url']['add'] を覗いてみると良い。

// disabled
var_dump($setting['url']['add']);
$setting['addDisabled'] = !($this->_Permission->check($setting['url']['add'], $user['user_group_id']));

上記の箇所で該当URLに対するアクセス権限をチェックしてました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?