File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 99use DBA \AccessGroupAgent ;
1010use DBA \Hashlist ;
1111use DBA \Factory ;
12+ use DBA \File ;
1213
1314class AccessGroupUtils {
1415 /**
@@ -175,6 +176,11 @@ public static function deleteGroup($groupId) {
175176 $ qF = new QueryFilter (Hashlist::ACCESS_GROUP_ID , $ group ->getId (), "= " );
176177 $ uS = new UpdateSet (Hashlist::ACCESS_GROUP_ID , $ default ->getId ());
177178 Factory::getHashlistFactory ()->massUpdate ([Factory::FILTER => $ qF , Factory::UPDATE => $ uS ]);
179+
180+ // update associations of files with this group
181+ $ qF = new QueryFilter (File::ACCESS_GROUP_ID , $ group ->getId (), "= " );
182+ $ uS = new UpdateSet (File::ACCESS_GROUP_ID , $ default ->getId ());
183+ Factory::getFileFactory ()->massUpdate ([Factory::FILTER => $ qF , Factory::UPDATE => $ uS ]);
178184
179185 // delete all associations to users
180186 $ qF = new QueryFilter (AccessGroupUser::ACCESS_GROUP_ID , $ group ->getId (), "= " );
You can’t perform that action at this time.
0 commit comments