Fix ui permissions

This commit is contained in:
Marcos Zuriaga 2016-10-03 13:58:53 +02:00
parent 042bf4b26d
commit 0516fdbce4
No known key found for this signature in database
GPG key ID: 7D15585354D072FF
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ angular.module('passmanApp')
$scope.accessLevels = [
{
label: 'Can edit',
value: '2'
value: '3'
},
{
label: 'Can view',

View file

@ -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']);