mirror of
https://github.com/haiwen/seafile.git
synced 2025-01-09 04:17:30 +08:00
Add set is_readonly property.
This commit is contained in:
parent
99a36f5963
commit
440c4db354
@ -6723,6 +6723,13 @@ seaf_repo_manager_set_repo_property (SeafRepoManager *manager,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strcmp (key, REPO_PROP_IS_READONLY) == 0) {
|
||||
if (g_strcmp0 (value, "true") == 0)
|
||||
repo->is_readonly = TRUE;
|
||||
else
|
||||
repo->is_readonly = FALSE;
|
||||
}
|
||||
|
||||
save_repo_property (manager, repo_id, key, value);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user