From 1c64e5408e2ce52bd70b01d9256db11a1dc3e145 Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Fri, 15 Jan 2021 22:04:22 +0100
Subject: [PATCH] =?UTF-8?q?add-role:=20P=C5=99eklep?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 bin/add-role | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/add-role b/bin/add-role
index 206e3682..046b33c2 100755
--- a/bin/add-role
+++ b/bin/add-role
@@ -23,9 +23,9 @@ session = db.get_session()
 if args.email and args.uid:
     parser.error('--email a --uid nesmí být uvedeny současně')
 elif args.email:
-    user = mo.user.user_by_email(args.email)
+    user = mo.users.user_by_email(args.email)
 elif args.uid:
-    user = mo.user.user_by_uid(args.uid)
+    user = mo.users.user_by_uid(args.uid)
 else:
     parser.error('Je nutné vybrat uživatele pomocí --email nebo --uid')
 
-- 
GitLab