Role refactor (#7867)

* role refactor

* add missing file

* fix web test
This commit is contained in:
Chris
2017-11-21 13:08:32 -06:00
committed by Christopher Speller
parent 01e652ed48
commit 816a30397d
38 changed files with 466 additions and 499 deletions

View File

@@ -129,12 +129,12 @@ func (s SqlChannelStore) CreateDirectChannel(userId string, otherUserId string)
cm1 := &model.ChannelMember{
UserId: userId,
NotifyProps: model.GetDefaultChannelNotifyProps(),
Roles: model.ROLE_CHANNEL_USER.Id,
Roles: model.CHANNEL_USER_ROLE_ID,
}
cm2 := &model.ChannelMember{
UserId: otherUserId,
NotifyProps: model.GetDefaultChannelNotifyProps(),
Roles: model.ROLE_CHANNEL_USER.Id,
Roles: model.CHANNEL_USER_ROLE_ID,
}
return s.SaveDirectChannel(channel, cm1, cm2)