Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 699 Bytes

File metadata and controls

35 lines (31 loc) · 699 Bytes

FilesLink Permissions

Overview

Permissions are managed via a JSON config file at config/permissions.json.

Configuration Format

{
  "allow_all": "*",
  "chats": {
    "chat1": ["1234567", 2345678],
    "chat2": "*"
  }
}

Examples

  • Grant access to all users:
    { "allow_all": "*", "chats": {} }
  • Grant access to specific users:
    { "allow_all": ["1234567", "2345678"], "chats": {} }
  • Special permissions for chats:
    { "allow_all": 4567890, "chats": { "chat1": ["1234567", 2345678], "chat2": "*" } }

Updating Permissions

  • Permissions update on restart or via CLI:
    ./fileslink-cli update-permissions