--- tablefield.module	2012-11-27 20:05:19.000000000 +0330
+++ tablefield_new.module	2013-04-07 18:04:06.000000000 +0430
@@ -33,6 +33,9 @@
     'export tablefield' => array(
       'title' => t('Export Tablefield Data as CSV'),
     ),
+    'rebuild tablefield' => array(
+      'title' => t('Can rebuild table in table field'),
+    ),
   );
 }
 
@@ -485,6 +488,8 @@
   );
 
   // Allow the user to add more rows/columns
+  $permission='rebuild tablefield';
+  if (user_access($permission)) {
   $element['tablefield']['rebuild'] = array(
     '#type' => 'fieldset',
     '#tree' => TRUE,
@@ -492,6 +497,7 @@
     '#collapsible' => TRUE,
     '#collapsed' => TRUE,
   );
+   
   $element['tablefield']['rebuild']['count_cols'] = array(
     '#title' => t('How many Columns'),
     '#type' => 'textfield',
@@ -508,6 +514,7 @@
     '#suffix' => '</div>',
     '#value' => $count_rows,
   );
+ 
   $element['tablefield']['rebuild']['rebuild'] = array(
     '#type' => 'button',
     '#validate' => array(),
@@ -526,7 +533,7 @@
       'event' => 'click'
     ),
   );
-
+  }
   // Allow the user to import a csv file
   $element['tablefield']['import'] = array(
     '#type' => 'fieldset',
