The Thinkery

Not finding what you're looking for? Don't hesitate to contact us!

Before Posting...

Before posting questions in the forums, please be sure to read the FAQs by clicking on the FAQs link in the sidebar product menu. You must be logged in and have a valid subscription to access the SUPPORT FORUMS.
×
Support Policy Notice

As outlined in our Rules section (though never closely followed by our staff!), effective immediately we will no longer be taking time to provide customizations of our products.

Add project =/ Edit project?

More
11 years 7 months ago - 11 years 7 months ago #7512 by johninho
johninho created the topic: Add project =/ Edit project?
Hi there, I would like to ask if it is possible to change these permissions...I want someone to be able to edit a specific project (for example the project manager) but it doesn't mean that I want him to add projects as well. He is responsible only for that project and not all projects (present ones, future ones etc) Thanks in advance :)

edit: Also I would like guests to view the projects..so setting a group etc isn't a solution I guess.
Last Edit: 11 years 7 months ago by johninho.

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #7523 by vinny
vinny replied the topic: Re: Add project =/ Edit project?
Hi - it would take some modification to the code to achieve this. Currently a user must have add/edit permissions to be able to edit projects -- it sounds like if you gave the 'manager' user add/edit permissions, you would just need to hide the 'add project' option from the front-end which would just require changing a few lines of code in the 'com_projectlog/views/cat/tmpl/default.php:

Change:
<?php if(PEDIT_ACCESS): ?>
<div align="right">
    <a href="<?php echo $add_project_link; ?>" class="red">[<?php echo JText::_('ADD PROJECT'); ?>]</a>
</div>
<?php endif; ?>
TO:
<?php if(PLOG_ADMIN): ?>
<div align="right">
    <a href="<?php echo $add_project_link; ?>" class="red">[<?php echo JText::_('ADD PROJECT'); ?>]</a>
</div>
<?php endif; ?>

This would allow admin to add projects, but regular users with add/edit permissions would not see the 'Add Project' option. Of course this hasn't been tested thoroughly but hopefully gets you on the right track.

As far as letting guests view projects, just set your basic access setting to 'Public' in the Projectlog parameters. Hope this helps.

Vinny - The Thinkery
Good reviews on the JED make us work harder :) | IProperty | Work Force | Report Card
The following user(s) said Thank You: maomaomao

Please Log in or Create an account to join the conversation.

Moderators: vinny
Time to create page: 0.257 seconds