Browse Source

improve code style

Maurits van der Schee 6 years ago
parent
commit
addb09440f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api.php

+ 1
- 1
api.php View File

@@ -1908,13 +1908,13 @@ class PHP_CRUD_API {
1908 1908
 		// reflection
1909 1909
 		list($tables,$collect,$select) = $this->findRelations($tables,$database,$auto_include);
1910 1910
 		$allFields = $this->findFields($tables,$database);
1911
-		if ($tenancy_function) $this->applyTenancyFunction($tenancy_function,$action,$database,$allFields,$filters);
1912 1911
 		$fields = $this->limitFields($allFields,$columns,$exclude,$select,$database);
1913 1912
 		
1914 1913
 		// permissions
1915 1914
 		if ($table_authorizer) $this->applyTableAuthorizer($table_authorizer,$action,$database,$tables);
1916 1915
 		if (!isset($tables[0])) $this->exitWith404('entity');
1917 1916
 		if ($record_filter) $this->applyRecordFilter($record_filter,$action,$database,$tables,$filters);
1917
+		if ($tenancy_function) $this->applyTenancyFunction($tenancy_function,$action,$database,$allFields,$filters);
1918 1918
 		if ($column_authorizer) $this->applyColumnAuthorizer($column_authorizer,$action,$database,$fields);
1919 1919
 
1920 1920
 		// input

Loading…
Cancel
Save