approval permissions
This commit is contained in:
		
							parent
							
								
									c2d6f1a5fa
								
							
						
					
					
						commit
						2b46ede098
					
				| @ -81,4 +81,7 @@ abstract class Permissions | |||||||
|     public const POOLS_ADMIN = "pools_admin"; |     public const POOLS_ADMIN = "pools_admin"; | ||||||
|     public const TIPS_ADMIN = "tips_admin"; |     public const TIPS_ADMIN = "tips_admin"; | ||||||
|     public const CRON_ADMIN = "cron_admin"; |     public const CRON_ADMIN = "cron_admin"; | ||||||
|  |     public const APPROVE_IMAGE = "approve_image"; | ||||||
|  |     public const APPROVE_COMMENT = "approve_comment"; | ||||||
|  | 
 | ||||||
| } | } | ||||||
|  | |||||||
| @ -151,6 +151,9 @@ new UserClass("base", null, [ | |||||||
|     Permissions::POOLS_ADMIN => false, |     Permissions::POOLS_ADMIN => false, | ||||||
|     Permissions::TIPS_ADMIN => false, |     Permissions::TIPS_ADMIN => false, | ||||||
|     Permissions::CRON_ADMIN => false, |     Permissions::CRON_ADMIN => false, | ||||||
|  | 
 | ||||||
|  |     Permissions::APPROVE_IMAGE => false, | ||||||
|  |     Permissions::APPROVE_COMMENT => false, | ||||||
| ]); | ]); | ||||||
| 
 | 
 | ||||||
| new UserClass("anonymous", "base", [ | new UserClass("anonymous", "base", [ | ||||||
| @ -228,6 +231,8 @@ new UserClass("admin", "base", [ | |||||||
|     Permissions::POOLS_ADMIN => true, |     Permissions::POOLS_ADMIN => true, | ||||||
|     Permissions::TIPS_ADMIN => true, |     Permissions::TIPS_ADMIN => true, | ||||||
|     Permissions::CRON_ADMIN => true, |     Permissions::CRON_ADMIN => true, | ||||||
|  |     Permissions::APPROVE_IMAGE => true, | ||||||
|  |     Permissions::APPROVE_COMMENT => true, | ||||||
| ]); | ]); | ||||||
| 
 | 
 | ||||||
| new UserClass("hellbanned", "user", [ | new UserClass("hellbanned", "user", [ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user