mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-17 19:23:27 +02:00
More changes to deleted characters (Account, guilds)
Account: Cannot change name, comment, gender + Cannot be deleted if owns a guild Guilds: Cannot create, cannot be invited, cannot accept invite, cannot be passed leadership to
This commit is contained in:
@@ -70,6 +70,8 @@ if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save') {
|
||||
$player->find($name);
|
||||
if(!$player->isLoaded()) {
|
||||
$errors[] = 'Player with name <b>' . $name . '</b> doesn\'t exist.';
|
||||
} else if ($player->isDeleted()) {
|
||||
$errors[] = "Character with name <b>$name</b> has been deleted.";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -122,4 +124,4 @@ if($show) {
|
||||
|
||||
$twig->display('guilds.back_button.html.twig', array(
|
||||
'action' => getLink('guilds') . '/' . $guild_name
|
||||
));
|
||||
));
|
||||
|
Reference in New Issue
Block a user