mirror of
				https://github.com/v2board/v2board.git
				synced 2025-11-01 01:41:47 +08:00 
			
		
		
		
	feature: staff permission
This commit is contained in:
		| @@ -23,6 +23,7 @@ class UserUpdate extends FormRequest | ||||
|             'commission_rate' => 'nullable|integer|min:0|max:100', | ||||
|             'discount' => 'nullable|integer|min:0|max:100', | ||||
|             'is_admin' => 'required|in:0,1', | ||||
|             'is_staff' => 'required|in:0,1', | ||||
|             'u' => 'integer', | ||||
|             'd' => 'integer', | ||||
|             'balance' => 'integer', | ||||
| @@ -41,6 +42,8 @@ class UserUpdate extends FormRequest | ||||
|             'banned.in' => '是否封禁格式不正确', | ||||
|             'is_admin.required' => '是否管理员不能为空', | ||||
|             'is_admin.in' => '是否管理员格式不正确', | ||||
|             'is_staff.required' => '是否员工不能为空', | ||||
|             'is_staff.in' => '是否员工格式不正确', | ||||
|             'plan_id.integer' => '订阅计划格式不正确', | ||||
|             'commission_rate.integer' => '推荐返利比例格式不正确', | ||||
|             'commission_rate.nullable' => '推荐返利比例格式不正确', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user