Fix login as student #50

Merged
s416204 merged 1 commits from fix-login-as-student into develop 2018-11-27 00:27:38 +01:00
Showing only changes of commit 012f2af3f2 - Show all commits

View File

@ -182,7 +182,9 @@ public class LoginActivity extends AppCompatActivity {
Claim userId = jwt.getClaim("nameid");
Claim role = jwt.getClaim("http://schemas.microsoft.com/ws/2008/06/identity/claims/role");
if(!Objects.requireNonNull(role.asString()).equals("Student")){
if(Objects.requireNonNull(role.asString()).equals("Student")){
PrefUtils.storeIsTutor(getApplicationContext(), false);
}else{
PrefUtils.storeIsTutor(getApplicationContext(), true);
}