diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index bcc541f..b1dfad2 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,13 +4,10 @@
-
+
-
-
-
-
+
@@ -45,34 +42,34 @@
- {
+ "keyToString": {
+ "DefaultGoTemplateProperty": "Go File",
+ "Go Build.Backend.executor": "Run",
+ "Go 构建.Backend.executor": "Run",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "RunOnceActivity.go.formatter.settings.were.checked": "true",
+ "RunOnceActivity.go.migrated.go.modules.settings": "true",
+ "RunOnceActivity.go.modules.automatic.dependencies.download": "true",
+ "RunOnceActivity.go.modules.go.list.on.any.changes.was.set": "true",
+ "git-widget-placeholder": "master",
+ "go.import.settings.migrated": "true",
+ "go.sdk.automatically.set": "true",
+ "last_opened_file_path": "/Users/littlesheep/Documents/Projects/Hydrogen/Passport/web/src/views",
+ "node.js.detected.package.eslint": "true",
+ "node.js.selected.package.eslint": "(autodetect)",
+ "nodejs_package_manager_path": "npm",
+ "run.code.analysis.last.selected.profile": "pProject Default",
+ "settings.editor.selected.configurable": "preferences.pluginManager",
+ "ts.external.directory.path": "/Users/littlesheep/Documents/Projects/Hydrogen/Passport/web/node_modules/typescript/lib",
+ "vue.rearranger.settings.migration": "true"
},
- "keyToStringList": {
- "DatabaseDriversLRU": [
- "postgresql"
+ "keyToStringList": {
+ "DatabaseDriversLRU": [
+ "postgresql"
]
}
-}]]>
+}
@@ -156,7 +153,6 @@
-
@@ -181,7 +177,8 @@
-
+
+
true
diff --git a/pkg/internal/services/accounts.go b/pkg/internal/services/accounts.go
index 3bb3fd6..ea62583 100644
--- a/pkg/internal/services/accounts.go
+++ b/pkg/internal/services/accounts.go
@@ -118,8 +118,8 @@ func ConfirmAccount(code string) error {
for k, v := range viper.GetStringMap("permissions.verified") {
if val, ok := user.PermNodes[k]; !ok {
user.PermNodes[k] = v
- } else if !ComparePermNode(val, v) {
- user.PermNodes[k] = v
+ } else {
+ user.PermNodes[k] = val
}
}
diff --git a/settings.toml b/settings.toml
index 8e6d066..1bd3f34 100644
--- a/settings.toml
+++ b/settings.toml
@@ -44,7 +44,10 @@ dsn = "host=localhost user=postgres password=password dbname=hy_passport port=54
prefix = "passport_"
[permissions.default]
-CreatePaperclipAttachments = 1048576
+CreatePost = true
+CreateAttachments = 1048576
[permissions.verified]
-CreatePaperclipAttachments = 26214400
+CreateRealm = true
+CreateArticle = true
+CreateAttachments = 26214400