diff options
author | Chris <ccbrown112@gmail.com> | 2017-11-21 13:08:32 -0600 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-11-21 11:08:32 -0800 |
commit | 816a30397da6ceff836d8723233dc5cdbda70871 (patch) | |
tree | d9075e04c6570296cea924b97088839f49d6ce9d /app/oauth_test.go | |
parent | 01e652ed481ed0ef0a8d8c021751655c1a58dd2a (diff) | |
download | chat-816a30397da6ceff836d8723233dc5cdbda70871.tar.gz chat-816a30397da6ceff836d8723233dc5cdbda70871.tar.bz2 chat-816a30397da6ceff836d8723233dc5cdbda70871.zip |
Role refactor (#7867)
* role refactor
* add missing file
* fix web test
Diffstat (limited to 'app/oauth_test.go')
-rw-r--r-- | app/oauth_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/oauth_test.go b/app/oauth_test.go index d5fbe8f5e..b964b377d 100644 --- a/app/oauth_test.go +++ b/app/oauth_test.go @@ -21,7 +21,7 @@ func TestOAuthRevokeAccessToken(t *testing.T) { session.CreateAt = model.GetMillis() session.UserId = model.NewId() session.Token = model.NewId() - session.Roles = model.ROLE_SYSTEM_USER.Id + session.Roles = model.SYSTEM_USER_ROLE_ID session.SetExpireInDays(1) session, _ = th.App.CreateSession(session) @@ -71,7 +71,7 @@ func TestOAuthDeleteApp(t *testing.T) { session.CreateAt = model.GetMillis() session.UserId = model.NewId() session.Token = model.NewId() - session.Roles = model.ROLE_SYSTEM_USER.Id + session.Roles = model.SYSTEM_USER_ROLE_ID session.IsOAuth = true session.SetExpireInDays(1) |