mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 23:17:02 +03:00
Resolve #570
This commit is contained in:
parent
dec2c1e84c
commit
a6bf2abaff
1 changed files with 2 additions and 8 deletions
|
|
@ -4,8 +4,8 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
const
|
const
|
||||||
NAME = 'Nextcloud',
|
NAME = 'Nextcloud',
|
||||||
VERSION = '2.7',
|
VERSION = '2.8',
|
||||||
RELEASE = '2022-10-25',
|
RELEASE = '2022-10-27',
|
||||||
CATEGORY = 'Integrations',
|
CATEGORY = 'Integrations',
|
||||||
DESCRIPTION = 'Integrate with Nextcloud v20+',
|
DESCRIPTION = 'Integrate with Nextcloud v20+',
|
||||||
REQUIRED = '2.19.0';
|
REQUIRED = '2.19.0';
|
||||||
|
|
@ -159,12 +159,6 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
public function FilterAppData($bAdmin, &$aResult) : void
|
public function FilterAppData($bAdmin, &$aResult) : void
|
||||||
{
|
{
|
||||||
if (!$bAdmin && \is_array($aResult)) {
|
if (!$bAdmin && \is_array($aResult)) {
|
||||||
if (isset($aResult['Capa']) && \is_array($aResult['Capa'])) {
|
|
||||||
$key = \array_search(\RainLoop\Enumerations\Capa::AUTOLOGOUT, $aResult['Capa']);
|
|
||||||
if (false !== $key) {
|
|
||||||
unset($aResult['Capa'][$key]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$sUID = \OC::$server->getUserSession()->getUser()->getUID();
|
$sUID = \OC::$server->getUserSession()->getUser()->getUID();
|
||||||
$sWebDAV = \OC::$server->getURLGenerator()->linkTo('', 'remote.php') . '/dav/';
|
$sWebDAV = \OC::$server->getURLGenerator()->linkTo('', 'remote.php') . '/dav/';
|
||||||
// $sWebDAV = \OCP\Util::linkToRemote('dav');
|
// $sWebDAV = \OCP\Util::linkToRemote('dav');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue