<?xml version="1.0" encoding="UTF-8"?>

<!-- Um locale nun anzulegen wäre dies: -->
<!-- locale/permissions quiqqer -->
<!-- locale/permissions quiqqer.site -->
<!-- locale/permissions quiqqer.site.new._title -->
<!-- locale/permissions quiqqer.site.new._descrition -->
<!-- locale/permissions quiqqer.site.edit._title -->
<!-- locale/permissions quiqqer.site.edit._descrition -->

<permissions>

    <!-- standard quiqqer permissions -->
    <!-- Darf in den Adminbereich -->
    <permission name="quiqqer.admin" type="bool">
        <defaultvalue>0</defaultvalue>
        <rootPermission>1</rootPermission>
        <everyonePermission>0</everyonePermission>
    </permission>

    <permission name="quiqqer.login" type="bool">
        <defaultvalue>1</defaultvalue>
        <rootPermission>1</rootPermission>
        <everyonePermission>0</everyonePermission>
        <guestPermission>0</guestPermission>
    </permission>

    <permission name="quiqqer.settings" type="bool">
        <defaultvalue>0</defaultvalue>
        <rootPermission>1</rootPermission>
        <everyonePermission>0</everyonePermission>
    </permission>

    <!-- Ist Super-User -->
    <!--<permission name="quiqqer.su" type="bool"/>-->

    <!-- Darf Updates durchführen -->
    <permission name="quiqqer.system.update" type="bool">
        <defaultvalue>0</defaultvalue>
        <rootPermission>1</rootPermission>
    </permission>

    <!-- Darf Zugrifssrechte verwalten -->
    <permission name="quiqqer.system.permissions" type="bool"/>

    <!-- Darf Cache löschen -->
    <permission name="quiqqer.system.cache" type="bool"/>

    <!-- Darf QUIQQER Core per MCP nutzen -->
    <permission name="quiqqer.core.mcp.canUse" type="bool">
        <defaultvalue>0</defaultvalue>
        <rootPermission>1</rootPermission>
        <everyonePermission>0</everyonePermission>
        <guestPermission>0</guestPermission>
    </permission>

    <!-- Darf den QUIQQER Core-Cache per MCP löschen -->
    <permission name="quiqqer.core.mcp.clearCache" type="bool">
        <defaultvalue>0</defaultvalue>
        <rootPermission>1</rootPermission>
        <everyonePermission>0</everyonePermission>
        <guestPermission>0</guestPermission>
    </permission>

    <!-- Darf QUIQQER Updates per MCP ausführen -->
    <permission name="quiqqer.core.mcp.updateAllowed" type="bool">
        <defaultvalue>0</defaultvalue>
        <rootPermission>1</rootPermission>
        <everyonePermission>0</everyonePermission>
        <guestPermission>0</guestPermission>
    </permission>

    <!-- Darf sich über die Konsole einloggen -->
    <permission name="quiqqer.system.console" type="bool"/>

    <!-- Darf die Gruppenverwaltung sehen -->
    <permission name="quiqqer.admin.groups.view" type="bool"/>

    <!-- Darf Gruppen editieren -->
    <permission name="quiqqer.admin.groups.edit" type="bool"/>

    <!-- Darf Gruppen anlegen -->
    <permission name="quiqqer.admin.groups.create" type="bool"/>

    <!-- Darf die Benutzerverwaltung sehen -->
    <permission name="quiqqer.admin.users.view" type="bool"/>

    <!-- Darf Benutzer editieren -->
    <permission name="quiqqer.admin.users.edit" type="bool"/>

    <!-- Darf Benutzer anlegen -->
    <permission name="quiqqer.admin.users.create" type="bool"/>

    <!-- Darf Benutzer löschen -->
    <permission name="quiqqer.admin.users.delete" type="bool"/>

    <!-- Is allowed to send email to user -->
    <permission name="quiqqer.admin.users.send_mail" type="bool"/>

    <!-- Darf Benutzer anlegen -->
    <permission name="quiqqer.users.delete_self" type="bool">
        <defaultvalue>1</defaultvalue>
    </permission>

    <!-- Project User / group permissions  -->
    <permission name="quiqqer.frontend.upload" type="bool">
        <defaultvalue>1</defaultvalue>
    </permission>

    <permission name="quiqqer.upload.maxUploadCount" type="int">
        <defaultvalue>10</defaultvalue>
    </permission>
    <permission name="quiqqer.upload.maxFileUploadSize" type="int">
        <defaultvalue>10000000</defaultvalue>
    </permission>
    <permission name="quiqqer.upload.allowedTypes" type="string"/>
    <permission name="quiqqer.upload.allowedEndings" type="string"/>

    <!-- Darf Projekte anlegen -->
    <permission name="quiqqer.projects.create" type="bool"/>

    <!-- Darf Projektdaten verändern -->
    <permission name="quiqqer.projects.edit" type="bool"/>

    <!-- Darf Projekte löschen -->
    <permission name="quiqqer.projects.destroy" type="bool"/>

    <!--  Darf Projekte Einstellungen machen -->
    <permission name="quiqqer.projects.setconfig" type="bool"/>

    <!-- Darf Projekte CSS ändern -->
    <permission name="quiqqer.projects.editCustomCSS" type="bool"/>

    <!-- Darf Projekte JS ändern -->
    <permission name="quiqqer.projects.editCustomJS" type="bool"/>


    <!-- Project permissions  -->

    <!-- Darf Projektdaten verändern -->
    <permission name="quiqqer.project.edit" type="users_and_groups" area="project"/>

    <!-- Darf Projekt löschen -->
    <permission name="quiqqer.project.destroy" type="users_and_groups" area="project"/>

    <!--  Darf Projekt Einstellungen machen -->
    <permission name="quiqqer.project.setconfig" type="users_and_groups" area="project"/>

    <!-- Darf Projekt CSS ändern -->
    <permission name="quiqqer.project.editCustomCSS" type="users_and_groups" area="project"/>

    <!-- Darf Projekt JS ändern -->
    <permission name="quiqqer.project.editCustomJS" type="users_and_groups" area="project"/>


    <!-- Site permissions  -->

    <!-- Seite besuchen -->
    <permission name="quiqqer.projects.site.view" type="users_and_groups" area="site"/>

    <!-- Seite editieren -->
    <permission name="quiqqer.projects.site.edit" type="users_and_groups" area="site"/>

    <!-- Seite löschen -->
    <permission name="quiqqer.projects.site.del" type="users_and_groups" area="site"/>

    <!-- Kind anlegen -->
    <permission name="quiqqer.projects.site.new" type="users_and_groups" area="site"/>


    <!-- Darf Seitenzugriffsrechte setzen -->
    <permission name="quiqqer.projects.sites.set_permissions" type="bool"/>

    <!-- Seite besuchen -->
    <permission name="quiqqer.projects.sites.view" type="bool"/>

    <!-- Seite editieren -->
    <permission name="quiqqer.projects.sites.edit" type="bool"/>

    <!-- Seite löschen -->
    <permission name="quiqqer.projects.sites.del" type="bool"/>

    <!-- Kind anlegen -->
    <permission name="quiqqer.projects.sites.new" type="bool"/>


    <!-- Editor permissions -->
    <permission name="quiqqer.editors.toolbar.delete" type="bool"/>

    <!-- File permissions -->
    <permission name="quiqqer.projects.media.set_permissions" type="bool"/>
    <permission name="quiqqer.projects.media.view" type="users_and_groups" area="media"/>
    <permission name="quiqqer.projects.media.edit" type="users_and_groups" area="media"/>
    <permission name="quiqqer.projects.media.del" type="users_and_groups" area="media"/>
    <permission name="quiqqer.projects.media.upload" type="users_and_groups" area="media"/>

</permissions>
