|
@@ -43,12 +43,14 @@ func (p *Search) Getstatus() error {
|
|
|
var tablepro bool
|
|
|
var dataexportstatus bool
|
|
|
var smartstatus bool
|
|
|
+ var followent bool
|
|
|
if p.GetSession("openid") != nil {
|
|
|
supstatus = jylabutil.IsAuthorized(p.GetSession("openid").(string), "i_supersearch")
|
|
|
entstatus = jylabutil.IsAuthorized(p.GetSession("openid").(string), "i_entsesearch")
|
|
|
tablepro = jylabutil.IsAuthorized(p.GetSession("openid").(string), "i_tablepro")
|
|
|
dataexportstatus = jylabutil.IsAuthorized(p.GetSession("openid").(string), "i_dataexport")
|
|
|
smartstatus = jylabutil.IsAuthorized(p.GetSession("openid").(string), "i_smartset")
|
|
|
+ followent = jylabutil.IsAuthorized(p.GetSession("openid").(string), "i_followent")
|
|
|
}
|
|
|
p.ServeJson(map[string]interface{}{
|
|
|
"supstatus": supstatus,
|
|
@@ -56,6 +58,7 @@ func (p *Search) Getstatus() error {
|
|
|
"tablepro": tablepro,
|
|
|
"dataexportstatus": dataexportstatus,
|
|
|
"smartstatus": smartstatus,
|
|
|
+ "followent": followent,
|
|
|
})
|
|
|
return nil
|
|
|
}
|