Home Forums Plugin Support WP Project Manager – Free User permissions?

This topic is: not resolved

This topic contains 15 replies, has 4 voices, and was last updated by  theoryengineers 6 years, 1 month ago.

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #1200

    eskamedia
    Participant
    Post count: 1

    Hi guys,

    I have this plugin set up for a building contractor, he wants to use this tool to inform his clients about building schematics, pictures when to do some tasks etc. and keep all email traffic on site with the Project Manager.

    How it's now setup, everyone can delete or add projects etc. no matter what the user role is set to.

    I would like to know if it's possible to assign some permissions to normal users so that they can't add new tasks, milestones, delete project, delete task, delete task list, delete messages, make new task lists etc.

    But can: Add a new message, a new reaction, upload a file, check on or off on the task-list, check on or off on the milestone page.

    #1202

    Tareq Hasan
    Keymaster
    Post count: 2831

    That shouldn't be the case. It DOES checks some permissions.

    • Admin and Editors can delete/create/see all the projects.
    • Other user can see only their project they are assigned to. Can't create too.
    • delete_pages” permission is checked to determine the user level.

    Perhaps you altered some default WP permission levels? Please install the plugin in a clean WP installation and see if these problems are still there.

    #1204

    eskamedia
    Participant
    Post count: 1

    I had the developer plugin installed, but I just un-installed that to see if that would change things.
    I even tried on a fresh install most of the permissions stay the same.

    I'm logged in as a normal user on the project manager, but i still can remove messages in my current setup (i cant remove a message in fresh install), make new task lists add new milestones etc. remove milestones etc.

    It would do me good if those permissions could be denied for a normal user.

    #1205

    Tareq Hasan
    Keymaster
    Post count: 2831

    Yes, you are right. In some cases, like task list, to-do, milestones, the user role wasn't checked. May be it needs some more user level restriction.

    #1206

    eskamedia
    Participant
    Post count: 1

    Is that something i can do on my own?

    #1207

    Tareq Hasan
    Keymaster
    Post count: 2831

    Yes you could, check the user roles and capability. You could check the roles with current_user_can('CAPABILITY NAME') and restrict the edit/delete links.

    #1212

    eskamedia
    Participant
    Post count: 1

    I tried to look into it but it's out of my league. I looked in capabilities.php and functions.php but did not find anything that resembled current_user_can

    I found allot of articles on how to change a role, but not where to look!
    Could you give some more pointers please?

    #1213

    eskamedia
    Participant
    Post count: 1

    Ah i see the current_user_can in single.php Ok now what?

    < ?php if ( current_user_can( 'delete_others_posts' ) ) { //editor ?>

    #1214

    Tareq Hasan
    Keymaster
    Post count: 2831

    Did you take a look at here?

    #1215

    eskamedia
    Participant
    Post count: 1

    Ok, in views/task in index.php i've added this

    <h3 class=”cpm-nav-title”>
    <?php _e( ‘Task Lists', ‘cpm' ) ?>

    <?php if ( current_user_can( ‘??????' ) ) { //editor ?>
    <a id=”cpm-add-tasklist” href=”#” class=”add-new-h2″><?php _e( ‘Add New Task List', ‘cpm' ) ?></a>
    <?php } ?>
    </h3>

    But what capability do i put in where the ‘?' are so that it will remove the option to add a new task-list for subscriber?

    #1216

    eskamedia
    Participant
    Post count: 1

    Ah i just put <?php if ( current_user_can( ‘delete_others_posts' ) ) { //editor ?> and it does not show anymore to a subscriber!

    #1217

    eskamedia
    Participant
    Post count: 1

    Great! It worked, i've added that line to all the delete/edit links in html.php

    Thanks for your help

    #3732

    Sebastian
    Participant
    Post count: 1

    Could you explain a little more for dummies as is the process?

    #3745

    theoryengineers
    Participant
    Post count: 2

    Yes.

    Is there some way to limit certain functions by user type?

    I'd like it to be an “open” project management software because the community enjoys helping out.

    If we can get some user permissions or more details on how to put user permissions in, then that would make this great.

    I got the frontend version:D

    #3751

    Tareq Hasan
    Keymaster
    Post count: 2831

    Right now, WP Project Manager doesn't maintain that much permission restriction. So it's tough to maintain.

Viewing 15 posts - 1 through 15 (of 16 total)

The topic ‘User permissions?’ is closed to new replies.