Hi, I am trying to create a new role with a different set of permissions in
The new role is 'Contractor' and so far I have added this to the role table in
the database as a new line,
This change allowed me to see this new role and select it when adding a new
person so all good so far. I then went to the Permissions list and go to
create a new permission but this Role is missing, I just have the standard
I then looked within the security directory and edited the permission.php file
to add contractor within the following line,
$TPL = page::select_options(array("god", "admin", "manage", "employee",
But I still don't get the 'contractor' option in the dropdown when creating a
new role so I must be missing a change somewhere. Can anyone shed some light
on any other files I need to modify to include 'contractor' as a new role.
P.S. The goal here is to create a role type for external contractors we use so
that we can lock down their access a little more than employees.
You seem to have CSS turned off.
Please don't fill out this field.
Sorry just to clarify, after making these changes I can select contractor when
adding a new person but do not see contractor in the list of roles available
when creating a new permission.
this, on the face of it, sounds like a bug. We'll need to investigate and
I'm guessing there may need to be another php file I need to modify other than
permission.php within the security directory but I don't know how I would find
it. It was a bit of guesswork and a clear directory structure that led me to
this may be the case, but I'll need to confer with the dev team for clarity on
I've discussed this with the team and they offer the following information
1) The believe that your code change should work, and have in fact tested it
successfully here. Is it possible that the problem you experienced was in fact
an artifact of stale browser data? Can you re-try with a clean page relaod?
2) What you're trying to do is a legitimate use case, but one allocPSA doesn't
really support at current. It would allow for, say, creating a new class of
users who could edit tasks but not projects. This is in essence not a bug,
per-se, but a new feature request.
We're therefore happy to consider incorporating this functionality, assuming
you'd like to code it.
Hi, I checked it wasn't a cache issue. I still don't see contractor listed in
the 'Role Name' drop-down when editing or creating a new permission but I will
ask our guys to look into the code and if implemented share this with the
interesting outcome. The code mods you applied seemed to work at our end.
Let us know how your team goes with this.
All the best.
any updates on this issue?
Working on a few other pieces at the moment, the contractor profile is
scheduled to be looked at by the end of this month hopefully.
Sign up for the SourceForge newsletter: