|
|
@ -36,7 +36,7 @@ app.controller('ClassListController', ['$scope', 'config', 'auth', '$http', '$lo
|
|
|
|
function (response) {
|
|
|
|
function (response) {
|
|
|
|
console.log(response.data);
|
|
|
|
console.log(response.data);
|
|
|
|
if (response.data.auth == 0) {
|
|
|
|
if (response.data.auth == 0) {
|
|
|
|
vm.alertService.showMessage('提示', '对不起您不是老师不能新建课程');
|
|
|
|
vm.alertService.showMessage('提示', '非教师身份不能创建课程哦~');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
else{
|
|
|
|
$location.path("/new_class");
|
|
|
|
$location.path("/new_class");
|
|
|
|