Post by pprmkr » Mon Jan 25, 2021 6:25 pm

Code: Select all

	<file path="admin/controller/marketplace/extension.php">
        <operation>
            <search><![CDATA[$files = glob(DIR_APPLICATION . 'controller/extension/' . $extension . '/*.php', GLOB_BRACE);]]></search>
            <add position="replace"><![CDATA[
				$files = array();
				$this_files = glob(DIR_APPLICATION . 'controller/extension/' . $extension . '/*.php', GLOB_BRACE);
				foreach ($this_files as $this_file) {
					$this_extension = basename($this_file, '.php');
					if ($this->user->hasPermission('access', 'extension/' . $extension . '/' . $this_extension)) {
						$files[] = $this_file;
					}
				}
            ]]></add>
        </operation>
	</file>
This should do the trick ...

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands
Who is online

Users browsing this forum: No registered users and 62 guests