MCPcopy Create free account
hub / github.com/error311/FileRise / isInitialSetupAllowed

Method isInitialSetupAllowed

src/FileRise/Domain/UserModel.php:51–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 }
50
51 public static function isInitialSetupAllowed(): bool
52 {
53 if (self::hasAnyUsers()) {
54 if (!self::hasSetupCompleteMarker() && !self::markSetupComplete()) {
55 error_log('FileRise: could not write setup-complete marker for existing users.');
56 }
57 return false;
58 }
59
60 return !self::hasSetupCompleteMarker();
61 }
62
63 private static function writeAtomic(string $path, string $data): bool
64 {

Callers 3

checkAuthMethod · 0.80
addUserMethod · 0.80

Calls 3

hasAnyUsersMethod · 0.95
markSetupCompleteMethod · 0.95

Tested by

no test coverage detected