diff --git a/bigbluebutton-web/grails-app/conf/BootStrap.groovy b/bigbluebutton-web/grails-app/conf/BootStrap.groovy index b890eec4d6d50a92a81340d48d1e5d2e6c99ed96..da3d53fd72f4a9ddfdccaa9859119db8c4df87a1 100644 --- a/bigbluebutton-web/grails-app/conf/BootStrap.groovy +++ b/bigbluebutton-web/grails-app/conf/BootStrap.groovy @@ -19,6 +19,8 @@ class BootStrap { adminUser.save(flush:true) new UserRoleRel(user: adminUser, role: adminRole).save(flush:true) + def userRole = new Role(name: "User").save() + String createdBy = adminUser.fullName String modifiedBy = adminUser.fullName diff --git a/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/UserController.groovy b/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/UserController.groovy index 11f392410976cf10886ae2e0fd920788945a66fc..6b8a791066ef3d7fb3dce52d7a6211bd1a3ab070 100644 --- a/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/UserController.groovy +++ b/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/UserController.groovy @@ -3,6 +3,7 @@ package org.bigbluebutton.web.controllers import org.jsecurity.crypto.hash.Sha1Hash import org.bigbluebutton.web.domain.User import org.bigbluebutton.web.domain.UserRoleRel +import org.bigbluebutton.web.domain.Role class UserController {