mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 04:16:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			411 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			411 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace App\Http\Requests\Api\Client\Servers\Subusers;
 | 
						|
 | 
						|
use App\Models\Permission;
 | 
						|
 | 
						|
class UpdateSubuserRequest extends SubuserRequest
 | 
						|
{
 | 
						|
    public function permission(): string
 | 
						|
    {
 | 
						|
        return Permission::ACTION_USER_UPDATE;
 | 
						|
    }
 | 
						|
 | 
						|
    public function rules(): array
 | 
						|
    {
 | 
						|
        return [
 | 
						|
            'permissions' => 'required|array',
 | 
						|
            'permissions.*' => 'string',
 | 
						|
        ];
 | 
						|
    }
 | 
						|
}
 |