def membership_type():
 if (not auth.s3_has_role(ADMIN)):
  s3.filter = auth.filter_by_root_org(s3db.member_membership_type)
 output = s3_rest_controller()
 return output

def membership_type ( ) : if ( not auth . s3_has_role ( ADMIN ) ) : s3 . filter = auth . filter_by_root_org ( s3db . member_membership_type ) output = s3_rest_controller ( ) return output
rest controller .