Soem fixes + also using the createPermissions() function of the module atm!

This commit is contained in:
Quitta 2013-09-08 22:49:39 +02:00
parent c5fc805294
commit 86033768fa
4 changed files with 7 additions and 5 deletions

View file

@ -91,7 +91,7 @@ $TIME_FORMAT = "m-d-Y H:i:s";
//defines which ingame layout template should be used
$INGAME_LAYOUT = "basic";
$FORCE_INGAME = true;
$FORCE_INGAME = false;

View file

@ -486,10 +486,10 @@ function createUser($values, $user_id)
//Create the user on the shard + in case shard is offline put copy of query in query db
//returns: ok, shardoffline or liboffline
$result = WebUsers::createUser($params, $user_id);
//createPermissions(array($login));
createPermissions(array($login));
}
/*function createPermissions($values) {
function createPermissions($values) {
try {
$hostname = variable_get('ryzommanage_serverurl', 'localhost');
@ -536,7 +536,7 @@ function createUser($values, $user_id)
}
return true;
}*/
}
function ryzommanage_user_login(&$edit, $account){
$_SESSION['user'] = $account->name;
@ -610,7 +610,7 @@ function top_bar()
// Logged in user
//check permission, if user
if(ticket_user::isMod(unserialize($_SESSION['ticket_user']))){
return "<div class='ryzomuserbar'><a href='".$WEBPATH."?page=show_user&id=".$userId."'>Profile</a> |
return "<div class='ryzomuserbar'><a href='".$WEBPATH."?page=dashboard'>Dashboard</a> | <a href='".$WEBPATH."?page=show_user&id=".$userId."'>Profile</a> |
<a href='".$WEBPATH."?page=createticket&id=".$userId."'>Create Ticket</a> |
<a href='".$BASE_WEBPATH."/user/".$userId."/edit'>Settings</a> | <a href='".$WEBPATH."?page=userlist'>Users</a> |
<a href='".$WEBPATH."?page=show_queue&get=todo'>Queues</a> |

View file

@ -91,3 +91,4 @@ function change_mail(){
}

View file

@ -87,3 +87,4 @@ function change_password(){
}