// GetAccess returns the user's permission to a dashboard menu based on
// their admin status, group and user permissions
GetAccess returns the user's permission to a dashboard menu based on
their admin status, group and user permissions
// GetAccess returns the user ' s permission to a dashboard menu based on // their admin status group and user permissions
func (u *User) GetAccess(modelName string) Permission {
	perm := Permission{}
	return perm
}
func ( u * User ) GetAccess ( modelName string ) Permission { perm := Permission { } return perm }
GetAccess returns the user's permission to a dashboard menu based on
their admin status, group and user permissions
GetAccess returns the user ' s permission to a dashboard menu based on their admin status group and user permissions
// Check if the user has permission to a model //if u.UserGroup.ID != u.UserGroupID { //	database.Preload(u) //} //uPerm := u.hasAccess(modelName) //gPerm := u.UserGroup.hasAccess(modelName) //if gPerm.ID != 0 { //	perm.Read = gPerm.Read //	perm.Edit = gPerm.Edit //	perm.Add = gPerm.Add //	perm.Delete = gPerm.Delete //	perm.Approval = gPerm.Approval //} //if uPerm.ID != 0 { //	perm.Read = uPerm.Read //	perm.Edit = uPerm.Edit //	perm.Add = uPerm.Add //	perm.Delete = uPerm.Delete //	perm.Approval = uPerm.Approval //} //if u.Admin { //	perm.Read = true //	perm.Edit = true //	perm.Add = true //	perm.Delete = true //	perm.Approval = true //}