Modifikasi ZimbraDrive 0.8.25 agar bisa digunakan di NextCloud 20

Modifikasi ZimbraDrive 0.8.25 agar bisa digunakan di NextCloud 20

Modifikasi ZimbraDrive 0.8.25 agar bisa digunakan di NextCloud 20 adalah bagian dari Artikel Kategori Zimbra

Cara cepatnya adalah dengan melakukan comment out terhadap baris berikut ini pada file :

nextcloud/apps/zimbradrive/lib/auth/abstractzimbrausersbackend.php like that:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
protected function insertUserInGroup(User $user, $groupName)
{
if(isset($user))
{
if(!$this->groupManager->groupExists($groupName))
{
$this->groupManager->createGroup($groupName);
}
/**
$targetGroup = $this->groupManager->get($groupName);
if(!$targetGroup->inGroup($user))
{
$targetGroup->addUser($user);
}
**/
}
}</code></pre>
<!-- /wp:code -->
protected function insertUserInGroup(User $user, $groupName) { if(isset($user)) { if(!$this-&gt;groupManager-&gt;groupExists($groupName)) { $this-&gt;groupManager-&gt;createGroup($groupName); } /** $targetGroup = $this-&gt;groupManager-&gt;get($groupName); if(!$targetGroup-&gt;inGroup($user)) { $targetGroup-&gt;addUser($user); } **/ } }</code></pre> <!-- /wp:code -->
protected function insertUserInGroup(User $user, $groupName)
    {
        if(isset($user))
        {
            if(!$this-&gt;groupManager-&gt;groupExists($groupName))
            {
                $this-&gt;groupManager-&gt;createGroup($groupName);
            }
/**
            $targetGroup = $this-&gt;groupManager-&gt;get($groupName);
            if(!$targetGroup-&gt;inGroup($user))
            {
                $targetGroup-&gt;addUser($user);
            }
            **/
        }
    }</code></pre>
<!-- /wp:code -->

 

Be the first to comment

Leave a Reply

Your email address will not be published.


*