[Added readonly accounts Adrian Georgescu **20080327163319] hunk ./cdrlib.phtml 712 + + // do not allow renormalization for readonly accounts + global $perm; + if (is_object($perm) && $perm->have_perm('readonly')) return false; hunk ./cdrlib_ser.phtml 874 - print "    ReNormalize"; - print " - "; + print " "; + + if (!$perm->have_perm('readonly')) { + print ";   ReNormalize"; + print " + "; + } hunk ./phplib/local.inc 292 - "provisioning" => 256 + "provisioning" => 256, + "readonly" => 512 hunk ./provisioning/ngnpro_client_lib.phtml 641 - printf(" - ", - $this->url - ); + printf(" + ", + $this->url + ); hunk ./provisioning/ngnpro_client_lib.phtml 650 - printf("\n"); hunk ./provisioning/ngnpro_client_lib.phtml 663 + if ($this->login_credentials['login_type'] !='admin') { + if (!$pstn_access && (preg_match("/^pstn_/",$_port))) continue; + } hunk ./rating_lib.phtml 904 - function RatingTables () { + function RatingTables ($readonly=false) { hunk ./rating_lib.phtml 908 + $this->readonly=$readonly; + hunk ./rating_lib.phtml 3587 + + if ($this->readonly) { + $this->tables[$table]['readonly']=1; + } hunk ./rating_lib.phtml 4110 - if (!in_array($Fname,$this->tables[$table]['keys'])) { + if (!in_array($Fname,$this->tables[$table]['keys']) && !$this->readonly) { hunk ./rating_lib.phtml 4197 +
+ hunk ./rating_lib.phtml 4209 - hunk ./rating_lib.phtml 4233 -
hunk ./rating_lib.phtml 4236 + +
hunk ./rating_lib.phtml 4245 - hunk ./rating_lib.phtml 4267 -
hunk ./rating_lib.phtml 4271 + hunk ./rating_tables.phtml 55 -$RatingTables=new RatingTables(); +if ($perm->have_perm("readonly")) { + $RatingTables=new RatingTables('readonly'); +} else { + $RatingTables=new RatingTables(); +} +