How can I make a Subscriber to add a project as well?

This topic contains 5 reply and 3 voices, and was last updated by Tareq Hasan 10 years, 12 months ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
April 25, 2013 at 7:21 pm 2865
Tareq Hasan
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!!
April 25, 2013 at 8:28 pm 2869
Mahi Mahi

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

April 25, 2013 at 10:31 pm 2872
Tareq Hasan Tareq Hasan

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

April 26, 2013 at 3:01 am 2887
jbm_28184 jbm_28184

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

April 26, 2013 at 3:43 am 2888
jbm_28184 jbm_28184

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!!

April 26, 2013 at 4:50 am 2890
Tareq Hasan Tareq Hasan

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 5 Posts - 1 through 5 (of 5 total)