1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

Create default users groups during setup process

This commit is contained in:
sauls8t 2018-03-08 11:54:57 +00:00
parent e6e099db1a
commit f3e4b4060e
3 changed files with 694 additions and 655 deletions

View file

@ -16,7 +16,8 @@ export default Route.extend({
beforeModel() {
let pwd = document.head.querySelector("[property=dbhash]").content;
if (pwd.length === 0 || pwd === "{{.DBhash}}") {
this.transitionTo('auth.login'); // don't allow access to this page if we are not in setup mode, kick them out altogether
// don't allow access to this page if we are not in setup mode
this.transitionTo('auth.login');
}
},