summaryrefslogtreecommitdiffstats
path: root/app/class/agent.class.php (follow)
AgeCommit message (Collapse)AuthorFilesLines
2018-11-10Add function agent::getContainedUsers()Malf Furious1-0/+7
This function helps further abstract agents. We want to get all users belonging to a pad that is owned by a group, or more specifically - an agent. If this agent is a user, that user is our only user to collect. If this agent is a group, we want to capture _it's_ owner along with all of it's members. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-21agent: Add function isAssignedTo()Malf Furious1-0/+15
2018-09-24agent: Fix bug in function canAccess()Malf Furious1-1/+1
This is probabally more of an oops than a bug, although was causing unexpected behavior. When falling back to checking whether the agent has access to the object's owner, it was wrongly accessing through $this->owner, rather than $obj->owner (which is the function argument). This was probabally left over from how this function _used_ to be implemented (you would call on the object and pass in the user).
2018-09-12Add function agent::getAgentObj()Malf Furious1-0/+17
This is basically a constructor for agent. The actual type returned is a contrete agent.
2018-07-22Fix bug in agent 'has permission' functionsMalf Furious1-0/+27
The check that this commit adds to each of these functions enables users with all permissions on themselves.
2018-07-22Fix bug in function agent::isOwner()Malf Furious1-1/+4
If the argument doesn't have an owner, then an access error is thrown when we try to do ->guid. Since there is no owner, just return false. Otherwise, do the comparision as usual.
2018-02-07Update class files to use renamed obj classMalf Furious1-31/+31
2017-06-19Move sendEmail() function into agent classMalf Furious1-0/+12
Adding this as an abstract function to class agent. Since we will only be sending emails to stored users (and groups) this makes more sense and allows us to remove this function from the global namespace as well.
2017-04-09Add agent function getPads_ordByOwnByName()Malf Furious1-0/+30
2017-03-26Add function agent::getDisplayName()Malf Furious1-0/+18
2017-02-16Add functions for checking user/group permissionsMalf Furious1-0/+282
2017-02-04Add agent classMalf Furious1-0/+54