From 1e7985a87a72bea9a308cf1506dacc828c6e2e1c Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 13 Sep 2016 12:42:48 -0400 Subject: Modifying permissions system. (#3897) --- model/user_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'model/user_test.go') diff --git a/model/user_test.go b/model/user_test.go index 16ac2583b..2f6524c05 100644 --- a/model/user_test.go +++ b/model/user_test.go @@ -225,6 +225,10 @@ func TestRoles(t *testing.T) { t.Fatal() } + if !IsValidUserRoles("system_user system_admin") { + t.Fatal() + } + if IsInRole("system_admin junk", "admin") { t.Fatal() } -- cgit v1.2.3-1-g7c22