Home Forums Plugin Support WP Project Manager – Free How can I make a Subscriber to add a project as well?

This topic is: resolved

This topic contains 5 replies, has 3 voices, and was last updated by  Tareq Hasan 6 years, 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2865

    jbm_28184
    Participant
    Post count: 2
    hello guys!
    i am using this plugin and i am so thankful that bright guys like you made a cool plugin as this.
    i just have 1 question, how can i give the privilege for a Subscriber so he can also Add Project? because right now, the Admin can only add project right?
    please help me..it will be a big help..thanks in advance guys!!
    #2869

    Mahi
    Member
    Post count: 1555

    Sorry, at this moment its not possible. ONLY admins can create projects as project manager.

    #2872

    Tareq Hasan
    Keymaster
    Post count: 2831

    Open `/class/project.php` and in line 331, change `delete_pages` to `read`. It'll give permission to the subscribers also.

    #2887

    jbm_28184
    Participant
    Post count: 2

    wow!! thanks Tareq! very helpful. Thanks for being cool!

    #2888

    jbm_28184
    Participant
    Post count: 2

    Hi Tareq, one thing more.. the Subscriber can add now project, however, he can also see other projects even not assigned to him. Is it possible that he can only see projects which belongs to him? thanks!!

    #2890

    Tareq Hasan
    Keymaster
    Post count: 2831

    Then changing the file is a bad idea. Undo that change.

    If you want to enable creating new projects, just remove the checking in `/views/project/index.php` from the `New Project` link.

    [php]
    <nav class="cpm-new-project">
    <a href="#" id="cpm-create-project" rel="nofollow"><span><?php _e( ‘New Project', ‘cpm' ); ?></span></a>
    </nav>
    [/php]

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘How can I make a Subscriber to add a project as well?’ is closed to new replies.