getUser()->isAdmin()) { throw new Forbidden(); } } public function beforeCreateLink() { throw new Forbidden(); } public function beforeRemoveLink() { throw new Forbidden(); } }