jawainc / simplecontact

Contact Us plugin for October CMS
6 stars 13 forks source link

permissions not correct #17

Closed getriebesand closed 8 years ago

getriebesand commented 8 years ago

In controllers/SimpleContact.php public $requiredPermissions = ['zainab.simplecontact.messages']; should be public $requiredPermissions = ['zainab.simplecontact.inbox'];

and in plugin.yaml the permissions should be:

permissions:
    zainab.simplecontact.inbox:
        tab: 'zainab.simplecontact::lang.simplecontact.permission'
        label: 'zainab.simplecontact::lang.simplecontact.permission_messages'
    zainab.simplecontact.manage_settings:
        tab: 'zainab.simplecontact::lang.simplecontact.permission'
        label: 'zainab.simplecontact::lang.simplecontact.permission_settings'
jawainc commented 8 years ago

pull request merged