getUser()->isAdmin()) { throw new Forbidden(); } } public function beforeCreate() { throw new Forbidden(); } public function beforeUpdate() { throw new Forbidden(); } public function beforePatch() { throw new Forbidden(); } public function beforeListLinked() { throw new Forbidden(); } public function beforeMassUpdate() { throw new Forbidden(); } public function beforeCreateLink() { throw new Forbidden(); } public function beforeRemoveLink() { throw new Forbidden(); } }