-
Notifications
You must be signed in to change notification settings - Fork 100
Description
I tried to change permission to a groupfolder using shell command as described in the documentation using the command:
occ groupfolders:permissions 4 --user User / -- +write
But I received this error:
An unhandled exception has been thrown:
TypeError: Argument 2 passed to OCA\GroupFolders\ACL\Rule::__construct() must be of the type integer, string given, called in /var/www/html/nextcloud/apps/groupfolders/lib/Command/ACL.php on line 185 and defined in /var/www/html/nextcloud/apps/groupfolders/lib/ACL/Rule.php:48
Stack trace:
#0 /var/www/html/nextcloud/apps/groupfolders/lib/Command/ACL.php(185): OCA\GroupFolders\ACL\Rule->__construct(Object(OCA\GroupFolders\ACL\UserMapping\UserMapping), '786', 3, 1)
#1 /var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\GroupFolders\Command\ACL->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /var/www/html/nextcloud/core/Command/Base.php(166): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(901): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(262): Symfony\Component\Console\Application->doRunCommand(Object(OCA\GroupFolders\Command\ACL), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(145): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/html/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/html/nextcloud/console.php(97): OC\Console\Application->run()
#8 /var/www/html/nextcloud/occ(11): require_once('/var/www/html/n...')
I think the command is correct.
This are my configurations:
Nextcloud 16.0.1
Groupfolders 4.0.2
Ubuntu Server 19.04
PHP 7.2.19
Thanks.