'Auth Menu'

@classmethod
def menu_auth(cls, **attr):

    auth = current.auth
    user_id = auth.s3_logged_in_person()
    menu_auth = None
    if (not user_id):
        menu_auth = MM('Login', c='default', f='user', m='login', right=True)
    else:
        user = auth.user
        options = [MM('Edit    Profile', c='pr', f='person', args=[user_id]), MM('Details', c='default', f='user', m='profile'), MM('Notification    Settings', c='default', f='index', m='subscriptions'), MM('Change    Password', c='default', f='user', m='change_password'), MM('Logout', c='default', f='user', m='logout')]
        if auth.s3_has_role('ADMIN'):
            options.insert(0, MM('Admin', c='admin', f='user'))
            options.insert(1, SEP())
        menu_auth = MM(user.email, right=True)(*options)
    return menu_auth
