Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions filecloudapi/fcserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1961,23 +1961,28 @@ def admin_addmembertogroup(self, groupid: str, username: str) -> None:

def admin_setgroupaccessforshare(
self,
share: Optional[FCShare],
share_obj: Optional[FCShare],
groupid: str,
adminproxyuserid: str = "",
write: bool = True,
download: bool = True,
share: bool = True,
sync: bool = True,
disallowdelete: bool = False,
) -> None:
"""
Set all user permissions for share
"""
resp = self._api_call(
"/app/websharepro/setgroupaccessforshare",
{
"shareid": share.shareid if share else "false",
"shareid": share_obj.shareid if share_obj else "false",
"groupid": groupid,
"write": "true",
"download": "true",
"share": "true",
"sync": "true",
"disallowdelete": "false",
"write": str(write).lower(),
"download": str(download).lower(),
"share": str(share).lower(),
"sync": str(sync).lower(),
"disallowdelete": str(disallowdelete).lower(),
"adminproxyuserid": adminproxyuserid,
},
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "filecloudapi-python"
version = "0.2.1"
version = "0.2.2"
description = "A Python library to connect to a Filecloud server"

packages = [{ include = "filecloudapi" }]
Expand Down
1 change: 1 addition & 0 deletions scent.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import subprocess

from sniffer.api import select_runnable, file_validator, runnable

try:
from pync import Notifier
except ImportError:
Expand Down
Loading