Browse Source

userID --> ssoId

MaiXinRong 8 years ago
parent
commit
e96d68fbe9
3 changed files with 3 additions and 2 deletions
  1. 1 0
      modules/pm/routes/pm_route.js
  2. 1 1
      server.js
  3. 1 1
      web/building_saas/main/js/views/project_info.js

+ 1 - 0
modules/pm/routes/pm_route.js

@@ -1,4 +1,5 @@
 /**
+ * pm: project management
  * Created by Mai on 2017/3/8.
  */
 

+ 1 - 1
server.js

@@ -106,7 +106,7 @@ app.use('/pm/api', pmRouter);
 
 app.get('/main',  function(req, res) {
     let pm = require('./modules/pm/controllers/pm_controller');
-    pm.checkProjectRight(req.session.userID, req.query.project, function (hasRight) {
+    pm.checkProjectRight(req.session.ssoId, req.query.project, function (hasRight) {
         if (hasRight) {
             res.render('building_saas/main/html/main.html',
                 {

+ 1 - 1
web/building_saas/main/js/views/project_info.js

@@ -6,13 +6,13 @@ var projectInfoObj = {
     projectInfo: null,
     getFullPathHtml: function (proj) {
         var fullPath = [], i, pm = '<a href="/pm">项目管理</a>', angleRight = '<i class="fa fa-angle-right fa-fw"></i>';
+        fullPath.push(pm);
         if (proj && proj.fullFolder) {
             for (i = 0; i < proj.fullFolder.length; i++) {
                 fullPath.push(angleRight, proj.fullFolder[i]);
             }
             fullPath.push(angleRight, proj.name);
         }
-        fullPath.push(pm);
         return fullPath.join('');
     },
     showProjectInfo: function (proj) {