Security C0CARD
This commit is contained in:
parent
b457768d44
commit
35c4837f63
1 changed files with 8 additions and 1 deletions
|
|
@ -23,9 +23,16 @@
|
|||
* @file
|
||||
* @brief answer to card_attr_inc.php
|
||||
*/
|
||||
/*
|
||||
* @var $g_user Noalyss_User
|
||||
*/
|
||||
global $g_user;
|
||||
// security
|
||||
$g_user->can_request("CCARDAT");
|
||||
if ( $g_user->check_module("C0CARD") == 0 ) {
|
||||
|
||||
record_log(new \Exception("C0CARD1: not authorized"));
|
||||
return;
|
||||
}
|
||||
|
||||
$http=new HttpInput();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue