Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@katzueno
Last active December 27, 2016 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katzueno/bd21a22543344349ff92a998a2efba4b to your computer and use it in GitHub Desktop.
Save katzueno/bd21a22543344349ff92a998a2efba4b to your computer and use it in GitHub Desktop.
<?php
/*
concrete5.7.5.10 フォームブロックの管理画面で、管理者しか削除ボタンを見えなくする方法
*/
use User; // 省略可能な場合あり
use Group; // 省略可能な場合あり
$u = new User;
if ($u->inGroup(Group::getByName('Administrators')) {
?>
<!-- ここに、削除ボタン関連のコードを挟む -->
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment