Last active
December 27, 2016 23:50
-
-
Save katzueno/bd21a22543344349ff92a998a2efba4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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