public function Project_Access()
{
// Access set to all projects
if ($this->projects == 0) {
if (file_exists(BASE_PATH . "/data/" . $this->username . '_acl.php')) {
unlink(BASE_PATH . "/data/" . $this->username . '_acl.php');
}
// Access set to restricted list
} else {
// Save array back to JSON
saveJSON($this->username . '_acl.php', $this->projects);
}
// Response
echo formatJSEND("success", null);
}