Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 05de141

Browse files
Merge pull request #119 from melanger/getFacilityAdmins
add getFacilityAdmins method to AdapterRPC
2 parents 456ce84 + 7aed1d6 commit 05de141

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
55
#### Added
66
- Added some methods for getting values to Adapter.php
77
- Added fallback to RPC for methods we're not able to run in LDAP
8+
- Add getFacilityAdmins method to RPC Connector
89

910
#### Changed
1011
- Changed the way of getting attribute names for interfaces: through internal attribute names in perun_attributes.php config

lib/AdapterRpc.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,13 @@ public function getVoAttributesValues($vo, $attributes)
312312
return $attributesValues;
313313
}
314314

315+
public function getFacilityAdmins($facility)
316+
{
317+
return $this->connector->get('facilitiesManager', 'getAdmins', [
318+
'facility' => $facility->getId(),
319+
]);
320+
}
321+
315322
public function getFacilityAttribute($facility, $attrName)
316323
{
317324
$perunAttr = $this->connector->get('attributesManager', 'getAttribute', [

0 commit comments

Comments
 (0)