diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-09-13 12:42:48 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-09-13 12:42:48 -0400 |
commit | 1e7985a87a72bea9a308cf1506dacc828c6e2e1c (patch) | |
tree | d4251391dc74a9ff4628dd1bed551c34d806a1b6 /model/channel_member_test.go | |
parent | 05af5d14b8d07b010c70750ae1ac5ddf22c120a7 (diff) | |
download | chat-1e7985a87a72bea9a308cf1506dacc828c6e2e1c.tar.gz chat-1e7985a87a72bea9a308cf1506dacc828c6e2e1c.tar.bz2 chat-1e7985a87a72bea9a308cf1506dacc828c6e2e1c.zip |
Modifying permissions system. (#3897)
Diffstat (limited to 'model/channel_member_test.go')
-rw-r--r-- | model/channel_member_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/model/channel_member_test.go b/model/channel_member_test.go index cff48ae27..e43560cee 100644 --- a/model/channel_member_test.go +++ b/model/channel_member_test.go @@ -30,14 +30,15 @@ func TestChannelMemberIsValid(t *testing.T) { t.Fatal("should be invalid") } - o.Roles = "missing" + o.NotifyProps = GetDefaultChannelNotifyProps() + o.UserId = NewId() + /*o.Roles = "missing" o.NotifyProps = GetDefaultChannelNotifyProps() o.UserId = NewId() if err := o.IsValid(); err == nil { t.Fatal("should be invalid") - } + }*/ - o.Roles = CHANNEL_ROLE_ADMIN o.NotifyProps["desktop"] = "junk" if err := o.IsValid(); err == nil { t.Fatal("should be invalid") |