feat(deps): ✨ Add support for more departments
This commit is contained in:
parent
bdf2fac1ad
commit
4369ebb2a5
19 changed files with 296 additions and 169 deletions
|
|
@ -100,6 +100,9 @@ func (s *Server) createHandler() {
|
|||
for _, p := range perms {
|
||||
superPerm = superPerm | p.CountryPermission
|
||||
}
|
||||
if superPerm < 3999 {
|
||||
superPerm = superPerm | permissions.Editor | permissions.Viewer
|
||||
}
|
||||
|
||||
// Seed
|
||||
_ = userService.CreateNewUser(context.WithValue(context.Background(), "user", &models.User{Email: "system"}), "kenta420", "poomipat.c@forth.co.th", "", permissions.Permission(superPerm))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue