Using Roles

About Support Support Using Roles

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2790
    Avatar for disciple316disciple316
    Member

    Hi Andy,

    What is the minimum capabilities required for each module to function with regard to roles. I am trying to create custom roles, e.g. leader, secretary, etc. to separate the administration of the church database from the church website blogs and news.
    Is this possible or will the same persons managing the database also have permission to create blog posts?

    God Bless
    Craig

    #3976
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    So as you know you can specify different roles for people to be able to use modules in the backend. Normal WordPress ones are administrator, editor, author, contributor, subscriber). WordPress has this concept of roles and assigns capabilities to those roles. The preferred scenario for plugin authors is to check a capability rather than check a role. Confusing huh!

    In the plugin, here’s the list of what it looks for against the default roles specified in settings…

    “administrator” – manage_options
    “editor” – delete_others_pages
    “author” -‘publish_posts’
    “contributor”- ‘edit_posts’
    “subscriber” – ‘read’

    So if you give your custom roles the appropriate capability and then choose the standard one in the plugin settings, you will be fine! I hope that makes sense!!!!

    #3977
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Even easier is to set individual permission for the modules! Then they can all be subscriber level

    #3978
    Avatar for disciple316disciple316
    Member

    Hi Andy
    Thanks for the prompt reply. I am probably still confused šŸ˜, but lets see how this goes.
    What I understand from you is that if the users of the modules all are subscribers, i.e they cannot do anything on the normal site, then if assigned to modules directly they will still be able to administer the directory and other lists.

    I will have a go at it although I have tested this with some users and seem to get permission denied errors.
    Will keep you posted
    God Bless
    Craig

    #3979
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    That is correct ;-)
    But….

    For personal data protection, everyone in the church should have an account (just click “Create User Accounts” in the People Tab, which gives everyone with an email a subscriber level account), so you can make any shortcodes that display personal data login only using loggedin=TRUE in the shortcode. They will also be able to edit their own entry (well parts of it like address details).
    Then people you want to have more church admin access either give them a higher role or use individual permissions!

    #3981
    Avatar for disciple316disciple316
    Member

    Hi Andy

    Thanks, I will test this and let you know hiw it goes. Last night I created pages for most of the functionality and found that the recent activity short code did not ask for login details.

    It happily displayed all the members uploaded with their details šŸ˜€

    Might be a bug?

    God Bless

    #3984
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    That is strange as it asked for a login for me!
    Can you post the shortcode without the [ please?

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.