Fix mistake in comments and docs

Player:IsAdmin is for groups who inherit from "admin" group, not "superadmin"
This commit is contained in:
Théo 2018-12-05 23:47:27 +01:00 committed by GitHub
parent c44d23fd82
commit 9170c0a307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,7 +208,7 @@ local origIsAdmin = meta.IsAdmin
Function: Player:IsAdmin
Overwrite garry's IsAdmin function to check for membership in admin group. This is so if group "serverowner"
inherits from superadmin, this function will still return true when checking on a member belonging to the
inherits from admin, this function will still return true when checking on a member belonging to the
"serverowner" group.
Returns:
@ -232,7 +232,7 @@ local origIsSuperAdmin = meta.IsSuperAdmin
--[[
Function: Player:IsSuperAdmin
Overwrite garry's IsSuperAdmin function to check for membership in admin group. This is so if group "serverowner"
Overwrite garry's IsSuperAdmin function to check for membership in superadmin group. This is so if group "serverowner"
inherits from superadmin, this function will still return true when checking on a member belonging to the
"serverowner" group.