本文整理汇总了TypeScript中entcore.model.me类的典型用法代码示例。如果您正苦于以下问题:TypeScript model.me类的具体用法?TypeScript model.me怎么用?TypeScript model.me使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了model.me类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: function
scope.canAccessSubject = function(subject){
if(model.me.hasRight(subject, Behaviours.applicationsBehaviours.exercizer.rights.resource.manager) || model.me.hasRight(subject, 'owner')){
return true;
} else{
return false;
}
};
开发者ID:OPEN-ENT-NG,项目名称:exercizer,代码行数:7,代码来源:teacherDashboardSubjectList.ts
示例2: function
angular.forEach(subjectList, function(id){
var subject = SubjectService.getById(id);
if(model.me.hasRight(subject, 'owner')){
//scope.lowerRight = 'owner';
isOneOwner = true
}
else if(model.me.hasRight(subject, Behaviours.applicationsBehaviours.exercizer.rights.resource.manager)){
//scope.lowerRight = 'manager';
isOneManage = true;
}
else if(model.me.hasRight(subject, Behaviours.applicationsBehaviours.exercizer.rights.resource.contrib)){
//scope.lowerRight = 'contrib';
isOneContrib = true;
}
else{
//scope.lowerRight = 'read';
isOneRead = true;
}
});
开发者ID:OPEN-ENT-NG,项目名称:exercizer,代码行数:19,代码来源:teacherDashboardToaster.ts
示例3: isSelectableSubject
function isSelectableSubject(subject){
var parent_id;
var owner;
if(scope.display.tab == 'subjectShared'){
parent_id = true;
} else{
if(scope.currentFolderId){
parent_id = subject.folder_id == scope.currentFolderId
} else{
parent_id = subject.folder_id == null;
}
}
//
if(model.me.hasRight(subject, 'owner') && scope.display.tab == 'mySubject'){
owner = true
} else if(!model.me.hasRight(subject, 'owner') && scope.display.tab == 'subjectShared') {
owner = true
} else{
owner = false;
}
return parent_id && owner;
}
开发者ID:OPEN-ENT-NG,项目名称:exercizer,代码行数:23,代码来源:teacherDashboardSubjectList.ts
示例4:
$scope.hasWorkflowZimbraExpert = () => {
return model.me.hasWorkflow('fr.openent.zimbra.controllers.ZimbraController|preauth');
};
开发者ID:entcore,项目名称:entcore,代码行数:3,代码来源:account.ts
注:本文中的entcore.model.me类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论