Skip to content

Commit

Permalink
ycom/media_auth enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasKrais committed May 1, 2019
1 parent 1b4db29 commit aa3b0ad
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/d2u_immo_module_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static function getModules() {
$modules = [];
$modules[] = new D2UModule("70-1",
"D2U Immo Addon - Hauptausgabe",
16);
17);
$modules[] = new D2UModule("70-2",
"D2U Immo Addon - Infobox Ansprechpartner",
3);
Expand Down
4 changes: 2 additions & 2 deletions modules/70/1/output.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ function printImages($pics) {
if($media instanceof rex_media) {
// Check permissions
$has_permission = TRUE;
if(rex_plugin::get('ycom', 'auth_media')->isAvailable()) {
$has_permission = rex_ycom_auth_media::checkPerm($media);
if(rex_plugin::get('ycom', 'media_auth')->isAvailable()) {
$has_permission = rex_ycom_media_auth::checkPerm(rex_media_manager::create("", $document));
}
if($has_permission) {
print '<li><span class="icon pdf"></span> <a href="'. rex_url::media($document) .'">'. $media->getTitle() .'</a></li>';
Expand Down
3 changes: 2 additions & 1 deletion pages/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

<p>1.1.2-DEV:</p>
<ul>
<li>Modul 70-1 prüft bei aktiviertem YCom ob Downloadrechte für Dateien bestehen.</li>
<li>Bild in sitemap.xml aufgenommen.</li>
<li>Anpassungen an URL Addon 2.x.</li>
</ul>
Expand Down Expand Up @@ -97,7 +98,7 @@
<li>Export Plugin: Portale können offline geschaltet werden.</li>
<li>Export Plugin: Bei Installation des Autoexportes künftig Ausführung im Frontend und Backend.</li>
<li>Export Plugin: Code hatte seit Einführung des namespace nicht mehr funktioniert.</li>
<li>Downloads, die durch ycom/auth_media geschützt sind werden nicht mehr angezeigt.</li>
<li>Downloads, die durch ycom/media_auth geschützt sind werden nicht mehr angezeigt.</li>
<li>Anpassungen Druckausgabe an Bootstrap 4.0.0.</li>
</ul>
<p>1.0.3:</p>
Expand Down
2 changes: 1 addition & 1 deletion update.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
$modules = [];
$modules[] = new D2UModule("70-1",
"D2U Immo Addon - Hauptausgabe",
16);
17);
$modules[] = new D2UModule("70-2",
"D2U Immo Addon - Infobox Ansprechpartner",
3);
Expand Down

0 comments on commit aa3b0ad

Please sign in to comment.