mirror of
https://github.com/nextcloud/passman.git
synced 2024-12-26 09:34:02 +08:00
Removed unused method and variable
This commit is contained in:
parent
3f2bb33ce3
commit
9c53219346
2 changed files with 14 additions and 14 deletions
|
@ -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){
|
||||
|
|
13
tests/unit/lib/Db/SharingACLMapperTest.php
Normal file
13
tests/unit/lib/Db/SharingACLMapperTest.php
Normal 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 {
|
||||
|
||||
}
|
Loading…
Reference in a new issue