mirror of
https://github.com/nextcloud/passman.git
synced 2026-01-04 06:37:12 +08:00
Fix ui permissions
This commit is contained in:
parent
042bf4b26d
commit
0516fdbce4
2 changed files with 2 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ angular.module('passmanApp')
|
|||
$scope.accessLevels = [
|
||||
{
|
||||
label: 'Can edit',
|
||||
value: '2'
|
||||
value: '3'
|
||||
},
|
||||
{
|
||||
label: 'Can view',
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ class ShareService {
|
|||
foreach ($entries as $entry){
|
||||
// Check if the user can read the credential, probably unnecesary, but just to be sure
|
||||
if (!$entry->hasPermission(SharingACL::READ)) continue;
|
||||
|
||||
|
||||
$tmp = $entry->jsonSerialize();
|
||||
$tmp['credential_data'] = $this->credential->getCredentialById($entry->getItemId())->jsonSerialize();
|
||||
unset($tmp['credential_data']['shared_key']);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue