Your IP : 216.73.216.218


Current Path : /home/antonen/poznajlitwe.lt/administrator/components/com_aimysitemap/helpers/
Upload File :
Current File : /home/antonen/poznajlitwe.lt/administrator/components/com_aimysitemap/helpers/rights.php

<?php
/*
 * Copyright (c) 2017-2019 Aimy Extensions, Netzum Sorglos Software GmbH
 * Copyright (c) 2014-2017 Aimy Extensions, Lingua-Systems Software GmbH
 *
 * https://www.aimy-extensions.com/
 *
 * License: GNU GPLv2, see LICENSE.txt within distribution and/or
 *          https://www.aimy-extensions.com/software-license.html
 */
 defined( '_JEXEC' ) or die(); abstract class AimySitemapRightsHelper { public static function getRights( $categoryId = 0 ) { $user = JFactory::getUser(); $res = new JObject(); if ( empty( $categoryId ) ) { $asset = 'com_aimysitemap'; $level = 'component'; } else { $asset = 'com_aimysitemap.category.' . (int) $categoryId; $level = 'category'; } $actions = JAccess::getActions( 'com_aimysitemap', $level ); foreach ( $actions as $action ) { $res->set( $action->name, $user->authorise( $action->name, $asset ) ); } return $res; } }