Commit fcfa80d6 authored by Florian Fittkau's avatar Florian Fittkau

minor

parent f69e5a65
......@@ -12,9 +12,9 @@ import scrumboard.shiro.Role
class BootStrap {
def init = { servletContext ->
createUsersAndRoles()
def ffi = createUsersAndRoles()
createExampleProject()
createExampleProject(ffi)
}
private createUsersAndRoles() {
......@@ -23,7 +23,7 @@ class BootStrap {
def ffi = new User(username: "ffi", passwordHash: new Sha256Hash("ffi").toHex())
ffi.addToRoles(developerRole)
ffi.save(failOnError: true)
ffi = ffi.save(failOnError: true)
def guestRole = new Role(name: "Gast")
guestRole.addToPermissions("*:*")
......@@ -31,11 +31,12 @@ class BootStrap {
def guest = new User(username: "Gast", passwordHash: new Sha256Hash("gast").toHex())
guest.addToRoles(guestRole)
guest.save(failOnError: true)
ffi
}
private createExampleProject() {
private createExampleProject(ffi) {
def fmcockpit = new Project(name: "FMcockpit")
def ffi = User.findByUsername("ffi")
fmcockpit.setProductBacklog(createBacklog(ffi))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment