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 | |
//基本的には、削除ボタンが押せなくなればいいので、 disabledを使用することに。 | |
//AdministratorsかSuperUserかを判別 | |
// | |
//先頭辺りに | |
$u = new User(); | |
//135行目あたり::フォーム選択画面でフォーム登録の削除が可能かどうかを設定 | |
//削除不可の場合は、buttonタグに disabled を追加 | |
if($u->isSuperUser() || $u->inGroup(Group::getByName('Administrators'))){ ?> |