• R/O
  • SSH
  • HTTPS

jinrousiki: 提交


Commit MetaInfo

修訂2767 (tree)
時間2021-08-16 03:51:31
作者umethyl

Log Message

OptionManager::ExistsWishRole()

Change Summary

差異

--- trunk/include/controller/user_manager_class.php (revision 2766)
+++ trunk/include/controller/user_manager_class.php (revision 2767)
@@ -117,7 +117,7 @@
117117 DB::LoadUser();
118118
119119 //希望役職チェック
120- if (false === OptionManager::ExistsWishRole($role)) {
120+ if (false === ArrayFilter::IsInclude(OptionManager::GetWishRoleList(), $role)) {
121121 self::OutputError($title, UserManagerMessage::CHECK_WISH_ROLE . $back_url);
122122 }
123123
--- trunk/include/option/option_class.php (revision 2766)
+++ trunk/include/option/option_class.php (revision 2767)
@@ -179,11 +179,6 @@
179179 return OptionLoader::Load('wish_role')->GetWishRole();
180180 }
181181
182- //希望役職存在判定
183- public static function ExistsWishRole($role) {
184- return ArrayFilter::IsInclude(self::GetWishRoleList(), $role);
185- }
186-
187182 //-- private --//
188183 //オプションロード可能判定
189184 private static function CanLoad($option) {
Show on old repository browser