Fixed permission assignments
This commit is contained in:
		
							parent
							
								
									5245e4ffc1
								
							
						
					
					
						commit
						14870efc11
					
				@ -1 +1 @@
 | 
				
			|||||||
Subproject commit a8a0aabd7fca05b950de9f781a3cd6ba5b799f79
 | 
					Subproject commit be826ccb507a84d97c9c07397b05a8fe731f7ce5
 | 
				
			||||||
@ -78,13 +78,15 @@ namespace ts::command::bulk_parser {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            inline void apply_to(const std::shared_ptr<permission::v2::PermissionManager>& manager, permission::v2::PermissionUpdateType mode) const {
 | 
					            inline void apply_to(const std::shared_ptr<permission::v2::PermissionManager>& manager, permission::v2::PermissionUpdateType mode) const {
 | 
				
			||||||
                if(this->is_grant_permission()) {
 | 
					                if(this->is_grant_permission()) {
 | 
				
			||||||
                    manager->set_permission(this->permission_type(), { this->value(), true }, permission::v2::PermissionUpdateType::do_nothing, mode);
 | 
					                    manager->set_permission(this->permission_type(), { 0, this->value() }, permission::v2::PermissionUpdateType::do_nothing, mode);
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
                    manager->set_permission(
 | 
					                    manager->set_permission(
 | 
				
			||||||
                            this->permission_type(),
 | 
					                            this->permission_type(),
 | 
				
			||||||
                            { this->value(), true },
 | 
					                            { this->value(), 0 },
 | 
				
			||||||
                            mode,
 | 
					                            mode,
 | 
				
			||||||
                            permission::v2::PermissionUpdateType::do_nothing
 | 
					                            permission::v2::PermissionUpdateType::do_nothing,
 | 
				
			||||||
 | 
					                            this->flag_skip(),
 | 
				
			||||||
 | 
					                            this->flag_negated()
 | 
				
			||||||
                    );
 | 
					                    );
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								shared
									
									
									
									
									
								
							
							
								
								
								
								
								
								
									
									
								
							
						
						
									
										2
									
								
								shared
									
									
									
									
									
								
							@ -1 +1 @@
 | 
				
			|||||||
Subproject commit a4febf7b5af191d41c566292958c55155128f16f
 | 
					Subproject commit f404d5e1fa5ed1cfbe3ef9a97c0e81c1fba943ff
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user