...
|
...
|
@@ -209,6 +209,7 @@ func GetCompanyDefaultRole(companyid int64) (*Role, error) { |
|
|
o := orm.NewOrm()
|
|
|
err := o.QueryTable(&Role{}).
|
|
|
Filter("company_id", companyid).
|
|
|
Filter("types", ROLETYPES_ROLE).
|
|
|
Filter("is_default", ROLE_DEFAULR).
|
|
|
One(r)
|
|
|
return r, err
|
...
|
...
|
|