2
0
Fork 0

Always scope sites query to active user.

This commit is contained in:
Maarten Billemont 2020-09-03 14:31:10 -04:00
parent aee1030758
commit b2c688a1ce
1 changed files with 1 additions and 0 deletions

View File

@ -423,6 +423,7 @@ typedef NS_OPTIONS( NSUInteger, MPPasswordsTips ) {
fetchRequest.sortDescriptors = @[
[[NSSortDescriptor alloc] initWithKey:NSStringFromSelector( @selector( lastUsed ) ) ascending:NO]
];
fetchRequest.predicate = [NSPredicate predicateWithFormat:@"user == %@", [MPiOSAppDelegate get].activeUserOID];
(self.fetchedResultsController = [[NSFetchedResultsController alloc]
initWithFetchRequest:fetchRequest managedObjectContext:mainContext