mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Merge branch 'patch/6.0.3'
This commit is contained in:
@@ -34,7 +34,7 @@ local function check_player_permissions(player,task)
|
|||||||
elseif allow_edit_task == 'admin' then
|
elseif allow_edit_task == 'admin' then
|
||||||
return player.admin
|
return player.admin
|
||||||
elseif allow_edit_task == 'expcore.roles' then
|
elseif allow_edit_task == 'expcore.roles' then
|
||||||
return Roles.player_allowed(player,config.edit_tasks_role_permission)
|
return Roles.player_allowed(player,config.expcore_roles_allow_edit_task)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Return false as all other condidtions have not been met
|
-- Return false as all other condidtions have not been met
|
||||||
@@ -49,7 +49,7 @@ local function check_player_permissions(player,task)
|
|||||||
elseif allow_add_task == 'admin' then
|
elseif allow_add_task == 'admin' then
|
||||||
return player.admin
|
return player.admin
|
||||||
elseif allow_add_task == 'expcore.roles' then
|
elseif allow_add_task == 'expcore.roles' then
|
||||||
return Roles.player_allowed(player,config.expcore_roles_add_permission)
|
return Roles.player_allowed(player,config.expcore_roles_allow_add_task)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Return false as all other condidtions have not been met
|
-- Return false as all other condidtions have not been met
|
||||||
|
|||||||
Reference in New Issue
Block a user