Removed unused method and variable

This commit is contained in:
Marcos Zuriaga 2016-10-11 23:15:45 +02:00
parent 3f2bb33ce3
commit 9c53219346
No known key found for this signature in database
GPG key ID: 7D15585354D072FF
2 changed files with 14 additions and 14 deletions

View file

@ -18,21 +18,8 @@ use OCA\Passman\Utility\Utils;
class SharingACLMapper extends Mapper {
const TABLE_NAME = '*PREFIX*passman_sharing_acl';
public function __construct(IDBConnection $db, Utils $utils) {
public function __construct(IDBConnection $db) {
parent::__construct($db, 'passman_sharing_acl');
$this->utils = $utils;
}
/**
* Gets all the credential data for the given user
* @param $userId
* @param $item_guid
* @return SharingACL[]
*/
public function getCredentialPermissions(IUser $userId, $item_guid){
$sql = "SELECT * FROM ". self::TABLE_NAME ." WHERE user_id = ? AND item_guid = ?";
return $this->findEntities($sql, [$userId, $item_guid]);
}
public function createACLEntry(SharingACL $acl){

View file

@ -0,0 +1,13 @@
<?php
/**
*
* Date: 11/10/16
* Time: 22:40
*
* @copyright Copyright (c) 2016, Marcos Zuriaga Miguel (wolfi@wolfi.es)
* @license AGPLv3
*/
class SharingACLMapperTest {
}