mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 16:56:52 +01:00 
			
		
		
		
	 03745eb4be
			
		
	
	
		03745eb4be
		
			
		
	
	
	
	
		
			
			* allow to assign nodes to roles * fix typo * fix node policy * small ui improvements * add missing translation * make phpstan happy * fix migration on mysql * also restrict mounts & database hosts to allowed nodes * fix migration on mysql v2 * changes from review * fix hasManyThrough * change `accessibleNodes` to builder Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com> --------- Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com>
		
			
				
	
	
		
			13 lines
		
	
	
		
			185 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			185 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Models;
 | |
| 
 | |
| use Illuminate\Database\Eloquent\Relations\Pivot;
 | |
| 
 | |
| class NodeRole extends Pivot
 | |
| {
 | |
|     protected $table = 'node_role';
 | |
| 
 | |
|     protected $primaryKey = null;
 | |
| }
 |