Update permissions to use beeper.local domain
This commit is contained in:
@@ -26,7 +26,7 @@ yaml.preserve_quotes = True
|
||||
services = ["telegram"]
|
||||
base_dir = "data"
|
||||
admin_user = "@inswe:beeper.com"
|
||||
domain = "beeper.com" # Implicitly trusted usually, but we set specific user
|
||||
domain = "beeper.local"
|
||||
|
||||
for service in services:
|
||||
config_path = os.path.join(base_dir, service, "config.yaml")
|
||||
@@ -57,11 +57,11 @@ for service in services:
|
||||
changed = True
|
||||
print(f" - Added admin permission for {admin_user}")
|
||||
|
||||
# Add domain fallback to ensure valid config structure if specific user fails
|
||||
if 'beeper.com' not in perms:
|
||||
perms['beeper.com'] = "user"
|
||||
# Add beeper.local domain permission
|
||||
if 'beeper.local' not in perms:
|
||||
perms['beeper.local'] = "user"
|
||||
changed = True
|
||||
print(f" - Added basic permission for beeper.com domain")
|
||||
print(f" - Added basic permission for beeper.local domain")
|
||||
|
||||
if changed:
|
||||
with open(config_path, 'w') as f:
|
||||
|
||||
Reference in New Issue
Block a user