// hasAccess returns the user level permission to a model. The modelName
// the the URL of the model
hasAccess returns the user level permission to a model. The modelName
the the URL of the model
// hasAccess returns the user level permission to a model . The modelName // the the URL of the model
func (u *User) hasAccess(modelName string) Permission {
	up := Permission{}
	return up
}
func ( u * User ) hasAccess ( modelName string ) Permission { up := Permission { } return up }
hasAccess returns the user level permission to a model.
hasAccess returns the user level permission to a model .
//dm := menumodel.DashboardMenu{} //if preloaded.CachePermissions { //	modelID := uint(0) //	for _, m := range cachedModels { //		if m.URL == modelName { //			modelID = m.ID //			break //		} //	} //	for _, p := range cacheUserPerms { //		if p.UserID == u.ID && p.DashboardMenuID == modelID { //			up = p //			break //		} //	} //} else { //	database.Get(&dm, "url = ?", modelName) //	database.Get(&up, "user_id = ? and dashboard_menu_id = ?", u.ID, dm.ID) //}