Справа добавлена галочка фильтрации пакетов тестирования, позволяющая показать только свои пакеты.

v++
This commit is contained in:
2024-03-10 00:42:29 +03:00
parent eeaf4d7217
commit f52a062e86
8 changed files with 65 additions and 1 deletions

View File

@@ -1,8 +1,10 @@
package TestingSystem.SAPFOR.SapforPackage;
import Common.Constants;
import Common.Current;
import Common.Database.DBObject;
import Common.Global;
import Common.Utils.Utils;
import TestingSystem.Common.Group.GroupsDBTable;
import TestingSystem.Common.TestingPackage.TestingPackage;
import TestingSystem.SAPFOR.Json.SapforPackage_json;
import TestingSystem.SAPFOR.Json.SapforTestingSet_json;
@@ -61,4 +63,8 @@ public class SapforPackage extends TestingPackage<SapforPackage_json> {
}
return new_tasks;
}
@Override
public boolean isVisible() {
return !SapforPackageDBTable.filterMyOnly || Current.getAccount().email.equals(sender_address);
}
}