Do not change participant primary key
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -28,14 +28,15 @@ use OCP\Share\IShare;
|
||||
|
||||
class Group extends RelationalObject {
|
||||
public function __construct(IGroup $group) {
|
||||
$primaryKey = IShare::TYPE_GROUP . ':' . $group->getGID();
|
||||
$primaryKey = $group->getGID();
|
||||
parent::__construct($primaryKey, $group);
|
||||
}
|
||||
|
||||
public function getObjectSerialization() {
|
||||
return [
|
||||
'uid' => $this->object->getGID(),
|
||||
'displayname' => $this->object->getDisplayName()
|
||||
'displayname' => $this->object->getDisplayName(),
|
||||
'type' => 1
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user