mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Add capability to toggle permission sync for specific users. (#11147)
This commit is contained in:
@@ -213,6 +213,9 @@ var/list/forum_groupids_to_ranks = list()
|
||||
if(isnull(user.ckey))
|
||||
log_debug("AdminRanks: [user.forum_name] does not have a ckey linked - Ignoring")
|
||||
return
|
||||
if(user.psync_game_disabled)
|
||||
log_debug("AdminRanks: [user.forum_name] has permsync-game disabled - Ignoring")
|
||||
return
|
||||
var/rights = 0
|
||||
|
||||
for (var/group_id in (user.forum_secondary_groups + user.forum_primary_group))
|
||||
|
||||
@@ -7,6 +7,7 @@ var/global/forumuser_api_key = null
|
||||
var/list/forum_secondary_groups = list()
|
||||
var/discord_id
|
||||
var/ckey
|
||||
var/psync_game_disabled = FALSE
|
||||
|
||||
/datum/forum_user/New(data)
|
||||
forum_member_id = data["forum_member_id"]
|
||||
@@ -18,6 +19,8 @@ var/global/forumuser_api_key = null
|
||||
|
||||
discord_id = data["discord_id"]
|
||||
ckey = data["ckey"]
|
||||
if(data["psync_game_disalbed"] == 1) //This here is needed because the data can be null, 1 or 0
|
||||
psync_game_disabled = TRUE
|
||||
|
||||
/datum/http_request/forumuser_api
|
||||
|
||||
@@ -62,4 +65,3 @@ var/global/forumuser_api_key = null
|
||||
R.body = users
|
||||
|
||||
return R
|
||||
|
||||
|
||||
Reference in New Issue
Block a user