func (p *politeiawww) isAdmin(r *http.Request) (bool, error) {
	user, err := p.getSessionUser(r)
	if err != nil {
		return false, err
	}

	return user.Admin, nil
}
// isAdmin returns true if the current session has admin privileges.
isAdmin returns true if the current session has admin privileges.
// isAdmin returns true if the current session has admin privileges .
func (p *politeiawww) isAdmin(r *http.Request) (bool, error) {
	user, err := p.getSessionUser(r)
	if err != nil {
		return false, err
	}
	return user.Admin, nil
}
func ( p * politeiawww ) isAdmin ( r * http . Request ) ( bool , error ) { user , err := p . getSessionUser ( r ) if err != nil { return false , err } return user . Admin , nil }
isAdmin returns true if the current session has admin privileges.
isAdmin returns true if the current session has admin privileges .