Changeset 91 for trunk/src/grails-app/conf/BootStrap.groovy
- Timestamp:
- Mar 25, 2009, 4:26:43 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/conf/BootStrap.groovy
r84 r91 67 67 BootStrapSaveAndTest(authInstance) 68 68 69 authInstance = new Authority(description:"Application User, all application users need this base role.", 69 authInstance = new Authority(description:"Business manager, grants full management access.", 70 authority:"ROLE_Manager") 71 BootStrapSaveAndTest(authInstance) 72 73 authInstance = new Authority(description:"Application User, all application users need this base role to allow login.", 70 74 authority:"ROLE_AppUser") 71 75 BootStrapSaveAndTest(authInstance) … … 85 89 personInstance.addToAuthorities(Authority.get(1)) 86 90 personInstance.addToAuthorities(Authority.get(2)) 91 personInstance.addToAuthorities(Authority.get(3)) 87 92 personInstance.addToPersonGroups(PersonGroup.findByName("gnuMims")) 88 93 89 personInstance = new Person(loginName:"admin2", 90 firstName:"Admin2", 91 lastName:"Powers2", 92 pass:passClearText, 93 password:passwordEncoded, 94 email:"admin2@example.com") 95 BootStrapSaveAndTest(personInstance) 96 personInstance.addToAuthorities(Authority.get(1)) 94 personInstance = new Person(loginName:"manager", 95 firstName:"Meca", 96 lastName:"Manager", 97 pass:passClearText, 98 password:passwordEncoded, 99 email:"manager@example.com") 100 BootStrapSaveAndTest(personInstance) 97 101 personInstance.addToAuthorities(Authority.get(2)) 102 personInstance.addToAuthorities(Authority.get(3)) 98 103 personInstance.addToPersonGroups(PersonGroup.findByName("gnuMims")) 99 104 … … 105 110 email:"user@example.com") 106 111 BootStrapSaveAndTest(personInstance) 107 personInstance.addToAuthorities(Authority.get( 2))112 personInstance.addToAuthorities(Authority.get(3)) 108 113 personInstance.addToPersonGroups(PersonGroup.findByName("Electrical")) 109 114 … … 115 120 email:"user@example.com") 116 121 BootStrapSaveAndTest(personInstance) 117 personInstance.addToAuthorities(Authority.get( 2))122 personInstance.addToAuthorities(Authority.get(3)) 118 123 personInstance.addToPersonGroups(PersonGroup.findByName("Electrical")) 119 124 … … 125 130 email:"user@example.com") 126 131 BootStrapSaveAndTest(personInstance) 127 personInstance.addToAuthorities(Authority.get( 2))132 personInstance.addToAuthorities(Authority.get(3)) 128 133 personInstance.addToPersonGroups(PersonGroup.findByName("Mechanical")) 129 134 … … 135 140 email:"user@example.com") 136 141 BootStrapSaveAndTest(personInstance) 137 personInstance.addToAuthorities(Authority.get( 2))142 personInstance.addToAuthorities(Authority.get(3)) 138 143 personInstance.addToPersonGroups(PersonGroup.findByName("Production")) 139 144
Note: See TracChangeset
for help on using the changeset viewer.