Contributor(s):
	Mark J Crane <*****@*****.**>
*/
//check permisions
if (!$included) {
    include "root.php";
    require_once "resources/require.php";
    require_once "resources/check_auth.php";
    if (permission_exists('group_edit')) {
        //access granted
    } else {
        echo "access denied";
        return;
    }
}
//add multi-lingual support
$language = new text();
$text = $language->get();
//permission restore default
require_once "core/users/resources/classes/permission.php";
$permission = new permission();
$permission->db = $db;
$permission->restore();
//redirect the users
if (!$included) {
    //show a message to the user
    $_SESSION["message"] = $text['message-restore'];
    header("Location: groups.php");
    return;
}