Commit Graph

2370 Commits

Author SHA1 Message Date
Spp
b980aff83e Core: Implement Role based Access Control
- This system will give more control of actions an account can perform.

System defines:
- Permissions to perform some action
- Roles: a set of permissions that have some relation
- Groups: a set of roles that have some relation

Operations:
- Grant: Assign and allow
- Deny: Assign and do not allow
- Revoke: Remove

Precedence to know if something can be done: Grant, Deny. That means, if you are granted some action by a role but you have denied the permission, the action can not be done.

Some Rules:
- Groups can only have roles
- Roles can only have permissions
- An account can be assigned granted and denied roles. Permissions inherited from roles are granted if roles is granted and denied if roles is denied
- An account can be assigned granted and denied permissions
- An account can have multiple groups, roles and permissions
- An account can not have same role granted and denied at same time
- An acconnt can not have same permission granted and denied at same time
- Id 0 can not be used to define a group, role or permission

Added some permissions as a sample of use (Instant Logout, Skip Queue, Join BGs, Join DF) and some permissions as a workaround to commands till command system is modified to use RBAC
2013-02-04 09:04:33 +01:00
Spp
ec5d16db8a Core/Dungeon Finder: Declare some functions private as those are not used outside LFGMgr. Also do not expose LFGDungeonData outside LFGMgr 2013-02-04 06:43:03 +01:00
Spp
f743424f63 Core/Dungeon Finder: Corrections to previous commit
- player::inRandomLfgDungeon was supposed to return if current player map and difficulty are the ones player applied for
2013-02-04 05:50:52 +01:00
Spp
9bdfc87774 Core/Dungeon Finder: Use lfg namespace to encapsulate all LFG classes, structs and enums 2013-02-04 04:43:50 +01:00
Spp
f753c989f2 Core/Dungeon Finder: Simplify Spell Luck of the draw code
Core/Dungeon Finder: Partial recode of "group list" using existing Lfg functions
2013-02-04 04:43:49 +01:00
w1sht0l1v3
ffb4c63fe3 DB/Misc: Add full script for Pilfering Perfume (A:24656 H:24541)
Closes #5205
2013-02-04 05:22:09 +02:00
Krogonos
cfaabe50cf Fixed a few file names to improve searching.
Signed-off-by: Krogonos <bryan.mayer26@yahoo.com>
2013-02-03 09:12:03 -06:00
Shauren
b346459ca8 Core: Warning fixes 2013-02-03 14:11:59 +01:00
Vincent_Michael
1cdfc65959 Script: Fix warning for craping script -.- 2013-02-03 01:32:14 +01:00
Vincent_Michael
0f53f69e52 Core: Fix build 2013-02-03 01:12:07 +01:00
Vincent_Michael
847cafc121 Scripts/Misc: Some code optimisations 2013-02-03 00:38:34 +01:00
Shauren
73d2f315af Scripts/Icecrown Citadel
* Fixed rare weird coldflame positioning
* Fixed Bone Slice
* Changed Bone Spike Graveyard timing (first has to happen after Lord Marrowgar starts using Bone Slice)
2013-02-02 16:48:09 +01:00
Shauren
817f5b3648 Scripts/Icecrown Citadel:
* Fixed Coldflame dealing double damage
* Targets hit by Bone Slice will now be immune to Bone Spike Graveyard
* Fixed healing players on Bone Spike

Closes #1091
Closes #4473
Closes #5854
Closes #7060
2013-02-01 18:06:51 +01:00
Shauren
0bf29d45d1 Core/Players: Prevent trading, taking gold from mail and withdrawing from guild bank if it would put the player over gold cap.
Closes #4015
2013-02-01 11:38:55 +01:00
Gacko
f5264e3fbb Script/ICC: Fix phase check and warning 2013-01-31 22:00:32 +01:00
Spp
67d46ae1ae Scripts/Commands: Show correct guild Rank when using .pinfo command
(Corrections to 1b551cc1)
2013-01-31 09:18:42 +01:00
Gacko
0a9fbc6588 Script/ICC: Fix phase check in Saurfang script
... typos - typos everywhere. me->request(glasses);
2013-01-31 08:45:47 +01:00
Gacko
754418a8de Script/ICC: Fix phase check in Saurfang script
Related to changes in dbecf05e39
2013-01-30 19:34:59 +01:00
Gacko
dbecf05e39 Core: Logical fixes and improvements in EventMap 2013-01-30 18:39:34 +01:00
Vincent_Michael
5a74336c5e Core: Fix non pch build 2013-01-30 18:24:29 +01:00
Vincent_Michael
8814d8c136 Script/ToCr: Fix crash for lord jaraxxus Mistress Kiss + cleanup 2013-01-30 18:06:19 +01:00
Spp
8cd408ae6c Core/Misc: Some changes to minimize differences with 4.3.4 branch 2013-01-30 10:34:18 +01:00
Spp
fa5dd4bd4e Core/Misc: Remove some calls to const_cast 2013-01-30 08:39:06 +01:00
Gacko
29cd1dbec1 Core/Quest: Bloody Breakout
Closes #641
2013-01-28 19:50:01 +01:00
Nay
1b551cc157 Scripts/Commands: Add guild info to .pinfo
Original patch by @secharles, modified

Closes #8946
2013-01-26 21:33:13 +00:00
Vincent_Michael
ceed5ea42f Scripts/Icecrown Citadel: Fix warning 2013-01-26 19:57:11 +01:00
Vincent_Michael
480c847156 Core: Some cosmetic changes 2013-01-26 19:49:53 +01:00
w1sht0l1v3
f0800d3926 Scripts/ShadowmoonValley: Fixup script for Lord Illidan Stormrage quest to be doable.
Notice: this whole script needs a proper rewrite(contains wrong Illidan npc id,bad dialogues,etc).
2013-01-26 19:19:55 +02:00
WishToDie
1348e4e44d Fix Typo. 2013-01-26 00:57:10 +02:00
w1sht0l1v3
6acfa49065 Script/Commands: Implement command to list the members of a group/party. 2013-01-26 00:41:46 +02:00
Shauren
705d0c8865 Scripts/Icecrown Citadel: Fixed possible crash with Bone Spike Graveyard
Closes #7171
2013-01-24 22:51:42 +01:00
Shauren
1c7ade5e54 Scripts/Icecrown Citadel: Fixed Deathbringer Saurfang's Blood Power scaling on first attempt.
Closes #3283
2013-01-24 22:46:45 +01:00
Shauren
6c5fbc492c Scripts/Icecrown Citadel: Fixed Essence of the Blood Queen interrupting player spell casts
Closes #8665
2013-01-23 23:14:18 +01:00
blub
a6f587a3b1 Merge pull request #9016 from joschiwald/spellscripts4
Core/Spell: convert more spells to SpellScripts
2013-01-23 11:19:39 -08:00
w1sht0l1v3
70490c8238 Script/Commands: Add command to join an existing group/party. 2013-01-23 20:58:01 +02:00
joschiwald
af50ce6223 Core/Spell: convert more spells to SpellScripts 2013-01-22 23:36:51 +01:00
Vincent_Michael
98e01fdb3f Core: Fix build 2013-01-22 21:00:08 +01:00
Nay
6fc17c6b1e Core: Fix compile warnings 2013-01-22 19:34:27 +00:00
Nay
ebded74eee Merge remote-tracking branch 'origin/master' into mmaps 2013-01-21 20:42:02 +00:00
Vincent_Michael
367e1f7b2b Core: Fix warnings 2013-01-21 10:11:46 +01:00
Aokromes
321b425f36 Update COPYING
Signed-off-by: Nay <dnpd.dd@gmail.com>
2013-01-21 02:47:51 +00:00
Nay
3523d84a91 Shooting myself in 3... 2... 2013-01-21 02:34:43 +00:00
Nay
2363552655 Scripts/ZG: Fix a warning and a compile error introduced in previous commit
Personal opinion: BossAI should not have a public field named "instance"
2013-01-21 02:24:25 +00:00
Nay
c6c23d67b8 Scripts/ZG: Fix some code style issues and logic errors 2013-01-21 02:10:01 +00:00
Malcrom
33b7685696 Scripting/ZulGrub: Fix last commit 2013-01-20 18:20:46 -03:30
Malcrom
b7dbc8d746 Scripting/Zulgrub: Updated Boss Arlokk Script. 2013-01-20 18:04:06 -03:30
Vincent_Michael
1e57543779 Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps
Conflicts:
	src/server/game/Movement/MovementGenerators/TargetedMovementGenerator.cpp
2013-01-20 22:11:06 +01:00
Nay
f4907e92aa Merge pull request #8961 from joschiwald/spellscripts3
Core/Spells: convert some spells to SpellScripts
2013-01-20 08:45:23 -08:00
joschiwald
c38d95ac33 Core/Spells: convert some spells to SpellScripts 2013-01-20 04:30:17 +01:00
Vincent_Michael
94944e3072 Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps
Conflicts:
	src/server/game/Movement/MovementGenerators/TargetedMovementGenerator.cpp
2013-01-20 00:34:20 +01:00