From ea10bfc0b5cee9ae8c632b179763a2d791a09eb1 Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Tue, 18 Sep 2012 07:50:40 +0000
Subject: [PATCH] Bugfix: app->tform is not defined on remoting api

---
 interface/web/sites/form/web_folder_user.tform.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interface/web/sites/form/web_folder_user.tform.php b/interface/web/sites/form/web_folder_user.tform.php
index 6f94c62675..187bd54ff2 100644
--- a/interface/web/sites/form/web_folder_user.tform.php
+++ b/interface/web/sites/form/web_folder_user.tform.php
@@ -50,7 +50,7 @@ $form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update,
 $form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
 $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
 
-$auth_sql = $app->tform->getAuthSQL('r', 'web_domain');
+$auth_sql = (isset($app->tform) ? $app->tform->getAuthSQL('r', 'web_domain') : '1');
 
 $form["tabs"]['user'] = array (
 	'title' 	=> "Folder",
-- 
GitLab