Changeset 6442
- Timestamp:
- 08/21/08 09:18:08 (5 months ago)
- Location:
- Trunk/association/serversides/cctiddly/Trunk
- Files:
-
- 3 added
- 5 modified
-
handle/save.php (modified) (1 diff)
-
includes/ccAssignments.php (modified) (1 diff)
-
includes/config.php (modified) (1 diff)
-
tiddlers/StatusDefinitions.tiddler (added)
-
tiddlers/TaskTiddlerControls.tiddler (added)
-
tiddlers/UserDefinitions.tiddler (added)
-
tiddlers/ccAdaptor.js (modified) (4 diffs)
-
tiddlers/ccWorkspace.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Trunk/association/serversides/cctiddly/Trunk/handle/save.php
r6364 r6442 3 3 include_once($cct_base."includes/header.php"); 4 4 5 if(!user_session_validate()) 6 { 7 sendHeader("401"); 8 exit; 9 } 5 10 6 11 //return result/message -
Trunk/association/serversides/cctiddly/Trunk/includes/ccAssignments.php
r6400 r6442 53 53 } 54 54 55 if ($ workspace_create == "A" && $tiddlyCfg['allow_workspace_creation'] ==1)55 if ($user['verified'] && $workspace_create == "A" && $tiddlyCfg['allow_workspace_creation'] ==1) 56 56 { 57 57 echo "workspacePermission.create = 1;\n"; -
Trunk/association/serversides/cctiddly/Trunk/includes/config.php
r6435 r6442 692 692 693 693 //default privileges 694 $tiddlyCfg['privilege_misc']['undefined_privilege'] = " A"; //defined what should undefined (U) be treated as695 $tiddlyCfg['privilege_misc']['default_privilege'] = "A AAA"; //default privilege for all group and tags694 $tiddlyCfg['privilege_misc']['undefined_privilege'] = "D"; //defined what should undefined (U) be treated as 695 $tiddlyCfg['privilege_misc']['default_privilege'] = "AUUU"; //default privilege for all group and tags 696 696 //default privileges for certain groups, applied after default_privilege 697 697 // it is in the form: $tiddlyCfg['privilege_misc']['group_default_privilege']['<group name>'] -
Trunk/association/serversides/cctiddly/Trunk/tiddlers/ccAdaptor.js
r6437 r6442 337 337 } else { 338 338 context.status = false; 339 if(xhr.status == 401 )339 if(xhr.status == 401 || xhr.status==409) 340 340 { 341 341 window.loggedIn = false; // we should check for other cases - revisions have changed. … … 358 358 createTiddlyElement(step,"br"); 359 359 createTiddlyElement(step,"br"); 360 createTiddlyText(step,"You will need to log into the new window and then copy your changes from this window into the new window. "); 361 createTiddlyElement(step,"br"); 362 createTiddlyElement(step,"br"); 363 createTiddlyButton(step,"Open a Window where I can log in and save my changes .... ",null,function(e){ window.open (window.location,"mywindow"); return false;}); 360 361 if(xhr.status==401){ 362 createTiddlyText(step,"Your session has expired."); 363 createTiddlyElement(step,"br"); 364 createTiddlyText(step,"You will need to log into the new window and then copy your changes from this window into the new window. "); 365 }else 366 { 367 createTiddlyText(step,"There was a conflict when saving."); 368 createTiddlyElement(step,"br"); 369 createTiddlyText(step,"Please open the page in a new window to see the changes."); 370 } 371 createTiddlyElement(step,"br"); 372 createTiddlyElement(step,"br"); 373 createTiddlyButton(step,"Open a Window where I can save my changes .... ",null,function(e){ window.open (window.location,"mywindow"); return false;}); 364 374 createTiddlyElement(step,"br"); 365 375 createTiddlyElement(step,"br"); … … 369 379 createTiddlyText(step,"Sorry for any inconvenience. "); 370 380 371 }else if(xhr.status==403)372 {373 displayMessage("Page Required Reloading.");374 381 }else{ 375 382 displayMessage(responseText); … … 378 385 context.statusText = xhr.statusText; 379 386 } 387 380 388 } 381 389 if(context.callback){ -
Trunk/association/serversides/cctiddly/Trunk/tiddlers/ccWorkspace.js
r6437 r6442 24 24 ***/ 25 25 //{{{ 26 27 config.backstageTasks.push('create'); 28 merge(config.tasks,{create: {text: 'create', tooltip: 'Create new workspace', content:'<<ccCreateWorkspace>>'}}); 29 26 27 28 29 if (isLoggedIn()){ 30 config.backstageTasks.push('create'); 31 merge(config.tasks,{create: {text: 'create', tooltip: 'Create new workspace', content:'<<ccCreateWorkspace>>'}}); 32 } 30 33 config.macros.ccCreateWorkspace = {} 31 34 config.macros.ccCreateWorkspace.handler = function(place,macroName,params,wikifier,paramString,tiddler, errorMsg){
