Skip to content

Commit

Permalink
Fix permit
Browse files Browse the repository at this point in the history
  • Loading branch information
arronzhang committed Mar 6, 2013
1 parent 6e65c5e commit f312ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Admin/Table.php
Expand Up @@ -385,7 +385,7 @@ public function format( $data )
$len = count($columns);

//set default format
if( $len && !$columns[0]->formatter ) {
if( $len && !$columns[0]->formatter && $this->permit("update") ) {
$columns[0]->formatter = function($table, $row, $val) {
return array("link", $val, $table->urlFor($row));
};
Expand Down

0 comments on commit f312ad4

Please sign in to comment.