Skip to content
This repository was archived by the owner on May 30, 2018. It is now read-only.

Commit 7d4ecff

Browse files
committed
fix(rights): add knowledge base rights for help center
Signed-off-by: Thierry Bugier <[email protected]>
1 parent fd47e71 commit 7d4ecff

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

install/installer.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ protected function createRegisteredProfileAccess() {
215215
Software::$rightname => READ,
216216
NetworkPort::$rightname => READ,
217217
CommonDropdown::$rightname => READ,
218+
KnowbaseItem::$rightname => READ | KnowbaseItem::READFAQ | KnowbaseItem::COMMENTS,
218219
));
219220
$profile = new Profile();
220221
$profile->update([

tests/0010_Integration/RegisteredUserProfileIntegrationTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,4 +222,11 @@ public function testRegisteredUserProfileConfigRight($rights) {
222222
$this->assertEquals(READ, $rights[Config::$rightname]);
223223
}
224224

225+
/**
226+
* @depends testGetRights
227+
* @param array $rights
228+
*/
229+
public function testRegisteredUserProfileKnowbaseItemRight($rights) {
230+
$this->assertEquals(READ | KnowbaseItem::READFAQ | KnowbaseItem::COMMENTS, $rights[Config::$rightname]);
231+
}
225232
}

0 commit comments

Comments
 (0)