Commit Graph

5 Commits

Author SHA1 Message Date
Ko-
393bdf97f9 Fix filename of group_sql.php 2018-05-30 13:02:53 +02:00
Marcin Łojewski
7649d23052 Manage limit and offset in usersInGroup function
Since user_sql apps don't manage limit and offset in **usersInGroup** function:
`$rows = $this -> helper -> runQuery('getGroupUsers', array('gid' => $gid), false, true);`

The unshareFromGroup function of **Activity** app start a infinity loop : 
```
while (!empty($users)) {
			$this->addNotificationsForGroupUsers($users, 'unshared_by', $share->getNodeId(), $share->getNodeType(), $share->getTarget(), $share->getId());
			$offset += self::USER_BATCH_SIZE;
			$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);
}
```

to fix that, just add offset and limit params to runQuery : 
``` 
$rows = $this -> helper -> runQuery('getGroupUsers', array('gid' => $gid), false, true, ['limit' => $limit, 'offset' => $offset]);
```
2018-05-11 18:28:37 +02:00
Horst Knorr
02b47f4e67 added image and nextcloud 13 bugfixes for group_sql 2018-01-28 14:48:04 +01:00
Horst Knorr
396c9f0968 bugfixed for Nextcloud 13 2018-01-28 14:41:28 +01:00
Horst Knorr
2e1179e035 added:
* Nextcloud 12 & 13 support
* added SALT support for password algorithms "system" and "password_hash"
* added security fix for password length sniffing attacks
* moved files to be more on the standard places
* renamed some files to be more standard like
* source code changes to be more standard like (max 80 characters)
2018-01-28 14:25:04 +01:00