mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-27 15:59:29 +00:00
Delete a group need user password as confirmation.
This commit is contained in:
parent
827fec68c7
commit
4f5ab6e966
@ -715,6 +715,10 @@ class GroupsController {
|
|||||||
|
|
||||||
user_login_required();
|
user_login_required();
|
||||||
|
|
||||||
|
//Check user password
|
||||||
|
if(!check_post_password(userID, "password"))
|
||||||
|
Rest_fatal_error(401, "Password required!");
|
||||||
|
|
||||||
//Get the group
|
//Get the group
|
||||||
$groupID = getPostGroupIdWithAccess("groupID", GroupInfo::ADMIN_ACCESS);
|
$groupID = getPostGroupIdWithAccess("groupID", GroupInfo::ADMIN_ACCESS);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user