Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Be less verbose in rg_rights_test | 3cb2d12960b059b61f7c2c47c6198fbbdee8bccd | Catalin(ux) M. BOIE | 2017-08-10 04:19:34 |
Remove rg_log_buf stuff because of performance issues | e85f70b38c197d44a9b4878dcff78da4f4f56562 | Catalin(ux) M. BOIE | 2017-08-08 20:08:56 |
Use a more efficient way to log multi line strings | 67923e6760bf26923bd7ce9c9bced7a3f526cecf | Catalin(ux) M. BOIE | 2017-08-08 19:54:00 |
css: make border more visible | 378b328cde875d1584f3df6d8635b340ee23207a | Catalin(ux) M. BOIE | 2017-07-22 23:27:29 |
struct: add itime for commit_labels | 67d189b9d3330ab4dc3b6a0580a736522b6c1d36 | Catalin(ux) M. BOIE | 2017-07-22 23:05:02 |
wh: builder: we need repo info for clone_url_ssh info | 6e95861b22476b0857f98a49025fc060302c2a3f | Catalin(ux) M. BOIE | 2017-07-22 12:35:52 |
hints: ssh: make more clear that ssh must be restarted | 8c35f89b323d3ea28fad79f4c32d78aadc8618f6 | Catalin(ux) M. BOIE | 2017-07-22 08:17:37 |
rg_authorize must be run as rocketgit user - fix permissions to 0755 | 80db46ae953b72ba521b3cd96c91602e127fc8f8 | Catalin(ux) M. BOIE | 2017-07-22 08:07:56 |
build_jobs: Columns with no defaults must be specified | bbb1c0036be3c6180d84e0641f41aa60ae1905f1 | Catalin(ux) M. BOIE | 2017-07-20 20:34:32 |
Show the suggestion to use https correctly | 9656ff5ec3bfe65fc7a573fae254483c31d88501 | Catalin(ux) M. BOIE | 2017-07-10 20:57:26 |
rg_template_eval_cond: now supports more operations | 2155bedec6e82343d84c8c504c0beb68fdf01dea | Catalin(ux) M. BOIE | 2017-07-10 20:55:48 |
Minor corrections | dc3ce904f00ce5903ac5614ac870a0529d22ee4a | Catalin(ux) M. BOIE | 2017-07-10 20:55:03 |
state_get: Return empty if the state table does not exists | 35822bff104ba2133f29a0a69cff4603d990a721 | Catalin(ux) M. BOIE | 2017-07-09 19:18:11 |
duilder: add 'samples' dir to the docs | 8762f7dbfcec1f3ed5d6d7ba7dbf0ed547a894b7 | Catalin(ux) M. BOIE | 2017-07-09 06:54:06 |
Bump version to 0.70 | a3524c87b21d22d734626503683e80e51abd574c | Catalin(ux) M. BOIE | 2017-07-09 06:40:24 |
Added nginx next to apache | 982e6536f5204a07c939b01229784a46c18cdada | Catalin(ux) M. BOIE | 2017-07-09 06:38:55 |
rg_exec: when stdout closes, we should not try to get input anymore from the external program | b550d45c19c48235eddbd5b6fdcadcec2689065b | Catalin(ux) M. BOIE | 2017-07-09 06:38:32 |
Small corrections | 68c2120f6bb1cd04e3c35b18fee8c2ce89c525bb | Catalin(ux) M. BOIE | 2017-07-09 06:36:59 |
tests: deal with the case when ControlMaster is not 'no' | 7fc439c93b2e9df218292d20fbe50606d770955f | Catalin(ux) M. BOIE | 2017-07-09 06:35:36 |
Do not use http_host anymore | af14b07381106cbc015aa6620d587b7e64ce7ed5 | Catalin(ux) M. BOIE | 2017-07-09 06:34:32 |
File | Lines added | Lines deleted |
---|---|---|
inc/rights.inc.php | 6 | 8 |
File inc/rights.inc.php changed (mode: 100644) (index da35d7d..bbb89b1) | |||
... | ... | function rg_rights_test($list, $needed_rights, $ip, $misc) | |
663 | 663 | ||
664 | 664 | rg_log_enter("rights_test: needed_rights=$needed_rights ip=$ip" | rg_log_enter("rights_test: needed_rights=$needed_rights ip=$ip" |
665 | 665 | . " misc=" . $misc); | . " misc=" . $misc); |
666 | //rg_log_ml('DEBUG list: ' . print_r($list, TRUE)); | ||
667 | 666 | ||
668 | 667 | $ret = FALSE; | $ret = FALSE; |
669 | 668 | while (1) { | while (1) { |
... | ... | function rg_rights_test($list, $needed_rights, $ip, $misc) | |
696 | 695 | } | } |
697 | 696 | } | } |
698 | 697 | ||
699 | if (strlen($v['rights']) == 0) { | ||
700 | rg_log('DEBUG: rights field is empty' | ||
701 | . ', stop processing!'); | ||
698 | // empty = no rights => stop processing | ||
699 | // This check must be after ip/isc tests! | ||
700 | if (strlen($v['rights']) == 0) | ||
702 | 701 | break; | break; |
703 | } | ||
704 | 702 | ||
705 | 703 | // Test rights | // Test rights |
706 | 704 | $have_a_match = FALSE; | $have_a_match = FALSE; |
... | ... | function rg_rights_test($list, $needed_rights, $ip, $misc) | |
710 | 708 | rg_log("[$r] != [$needed1]! Continue."); | rg_log("[$r] != [$needed1]! Continue."); |
711 | 709 | continue; | continue; |
712 | 710 | } | } |
713 | rg_log("[$r] = [$needed1]! Allow."); | ||
714 | 711 | $have_a_match = TRUE; | $have_a_match = TRUE; |
715 | 712 | break; | break; |
716 | 713 | } | } |
717 | 714 | if ($have_a_match === FALSE) | if ($have_a_match === FALSE) |
718 | 715 | continue; | continue; |
719 | 716 | ||
720 | rg_log('DEBUG: rule ' . $k . ' matched.'); | ||
717 | //rg_log('DEBUG: rule ' . $k . ' matched.'); | ||
721 | 718 | $ret = TRUE; | $ret = TRUE; |
722 | 719 | break; | break; |
723 | 720 | } | } |
724 | 721 | ||
725 | 722 | break; | break; |
726 | 723 | } | } |
727 | rg_log("DEBUG: rights_test returns " . ($ret === FALSE ? "deny" : "allow")); | ||
724 | if ($ret === FALSE) | ||
725 | rg_log('deny'); | ||
728 | 726 | ||
729 | 727 | rg_log_exit(); | rg_log_exit(); |
730 | 728 | return $ret; | return $ret; |