Skip to content
This repository has been archived by the owner on Sep 12, 2020. It is now read-only.

Commit

Permalink
permission bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
GrafDimenzio committed Jul 21, 2020
1 parent ee3ed71 commit 2092494
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions Synapse/Config/PermissionReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ public static class PermissionReader
// Methods
internal static void Init()
{
if (!File.Exists(Files.PermissionFile))
File.WriteAllText(Files.PermissionFile, "groups:\n user:\n default: true\n permissions:\n - plugin.permission\n northwood:\n northwood: true\n permissions:\n - plugin.permission\n owner:\n permissions:\n - .*");

ReloadPermission();
}

Expand Down
2 changes: 1 addition & 1 deletion Synapse/Synapse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ internal static string PermissionFile
var path = Path.Combine(Files.ServerConfigDirectory, "permissions.yml");

if (!File.Exists(path))
File.Create(path).Close();
File.WriteAllText(path, "groups:\n user:\n default: true\n permissions:\n - plugin.permission\n northwood:\n northwood: true\n permissions:\n - plugin.permission\n owner:\n permissions:\n - .*");

return path;
}
Expand Down

0 comments on commit 2092494

Please sign in to comment.