Skip to content

Commit

Permalink
Merge pull request filebrowser#102 from ttys3/feature-per-user-auto-d…
Browse files Browse the repository at this point in the history
…ir-creation

feature: global settings: add createUserDir option checkbox.
  • Loading branch information
hacdias authored Apr 20, 2019
2 parents a437761 + 176eaad commit 3ed2144
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
"users": "Users",
"globalRules": "This is a global set of allow and disallow rules. They apply to every user. You can define specific rules on each user's settings to override this ones.",
"allowSignup": "Allow users to signup",
"createUserDir": "Auto create user home dir while adding new user",
"insertRegex": "Insert regex expression",
"insertPath": "Insert the path",
"userUpdated": "User updated!",
Expand Down
2 changes: 2 additions & 0 deletions src/views/settings/Global.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<div class="card-content">
<p><input type="checkbox" v-model="settings.signup"> {{ $t('settings.allowSignup') }}</p>

<p><input type="checkbox" v-model="settings.createUserDir"> {{ $t('settings.createUserDir') }}</p>

<h3>{{ $t('settings.rules') }}</h3>
<p class="small">{{ $t('settings.globalRules') }}</p>
<rules :rules.sync="settings.rules" />
Expand Down

0 comments on commit 3ed2144

Please sign in to comment.