def is_prereg_admin_not_project_admin(request, draft):
 user = request.user
 is_project_admin = draft.branched_from.has_permission(user, osf_permissions.ADMIN)
 return (is_prereg_admin(user) and (not is_project_admin))

def is_prereg_admin_not_project_admin ( request , draft ) : user = request . user is_project_admin = draft . branched_from . has_permission ( user , osf_permissions . ADMIN ) return ( is_prereg_admin ( user ) and ( not is_project_admin ) )
returns true if user is prereg admin .