mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Address CodeQL
This commit is contained in:
		| @@ -47,7 +47,7 @@ export class PermissionsSelectComponent | ||||
|   set inheritedPermissions(inherited: string[]) { | ||||
|     // remove <app_label>. from permission strings | ||||
|     this._inheritedPermissions = inherited?.length | ||||
|       ? inherited.map((p) => p.replace(/.+\./, '')) | ||||
|       ? inherited.map((p) => p.replace(/^\w+\./g, '')) | ||||
|       : [] | ||||
|   } | ||||
|  | ||||
|   | ||||
| @@ -49,7 +49,6 @@ class UserSerializer(serializers.ModelSerializer): | ||||
|     def update(self, instance, validated_data): | ||||
|         if "password" in validated_data: | ||||
|             if len(validated_data.get("password").replace("*", "")) > 0: | ||||
|                 print("set", validated_data.get("password")) | ||||
|                 instance.set_password(validated_data.get("password")) | ||||
|                 instance.save() | ||||
|             validated_data.pop("password") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon