Isaac Connor
|
3e95134448
|
Remove Debug
|
2022-11-10 18:07:40 -05:00 |
Isaac Connor
|
4814eaa2df
|
Don't use old MonitorIds filter
|
2022-11-03 18:29:03 -04:00 |
Isaac Connor
|
7fda500140
|
Make permission values 0 based but stsarting with UNKNOWN because when doing permission+0 in SQL, we get a 1-based value
|
2022-11-03 18:28:23 -04:00 |
Isaac Connor
|
d583c10fa6
|
Return events when limit is > the # of events returned
|
2022-11-03 17:48:39 -04:00 |
Isaac Connor
|
f37786bb2a
|
Remove quotes from line inserting values into Monitor_Permissions
|
2022-11-03 16:57:16 -04:00 |
Isaac Connor
|
4d3dfd84f4
|
add includes/Monitor_Permission.php
|
2022-11-03 12:24:14 -04:00 |
Isaac Connor
|
12d5748c1c
|
Fi test for Groups_Permissions_GroupId_UserId_idx
|
2022-11-03 11:14:23 -04:00 |
Isaac Connor
|
20f01b6953
|
Remove command to drop Groups_Permissions
|
2022-11-03 09:30:07 -04:00 |
Isaac Connor
|
5106d2aaa4
|
Move db updates for Groups and Monitor Permissions into place, and bump version it gets picked up
|
2022-11-03 07:49:44 -04:00 |
Isaac Connor
|
59898b9a0c
|
Fix eslint
|
2022-11-02 17:47:12 -04:00 |
Isaac Connor
|
24ac383f97
|
spacing
|
2022-11-02 17:44:42 -04:00 |
Isaac Connor
|
160b61a9a0
|
Updates for added effecivePermission calculation
|
2022-11-02 17:44:34 -04:00 |
Isaac Connor
|
e3b1dd1dd0
|
rough in updateEffectivePermissions
|
2022-11-02 17:43:48 -04:00 |
Isaac Connor
|
6d31800419
|
Add monitors and groups info to javascript side
|
2022-11-02 17:43:34 -04:00 |
Isaac Connor
|
ea6d999654
|
Must use false === when using array_search because first element returns 0
|
2022-11-02 17:42:32 -04:00 |
Isaac Connor
|
7e82159f1a
|
Remove bootstrap calls=text-right crap. Replace with css
|
2022-11-02 15:53:55 -04:00 |
Isaac Connor
|
253011a453
|
Set styles for Name/th column of user edit table
|
2022-11-02 15:53:32 -04:00 |
Isaac Connor
|
135c52f3ec
|
Fix Group_Permissions()
|
2022-11-02 15:53:13 -04:00 |
Isaac Connor
|
ab3e1811d3
|
fix canEdit, rough in effectPermission
|
2022-11-02 15:52:37 -04:00 |
Isaac Connor
|
616734a041
|
Move API option to left column, replace MOnitorIds select with an entire section dedicated to specific monitor permissions
|
2022-11-02 13:26:37 -04:00 |
Isaac Connor
|
b1579d953d
|
Clear br.clear as well as div
|
2022-11-02 13:26:37 -04:00 |
Isaac Connor
|
b066e936c7
|
Apply styles to Monitor Permissions table
|
2022-11-02 13:26:34 -04:00 |
Isaac Connor
|
63769a2082
|
Fix missing )
|
2022-11-02 13:26:34 -04:00 |
Isaac Connor
|
3c36233dd8
|
Put in all the new logic for visibleMonitor and editableMonitor referencing Monitor_Permissions and Group_Permissions
|
2022-11-02 13:25:53 -04:00 |
Isaac Connor
|
68bf964eec
|
Add saving of Monitor_Permissions
|
2022-11-02 13:25:53 -04:00 |
Isaac Connor
|
b7490c754b
|
Rough in Group_Permission and Monitor Permissions loading functions.
|
2022-11-02 13:25:44 -04:00 |
Isaac Connor
|
24a83efa79
|
Improve Monitor canView and canEdit. If the user is not specified, use the cached auth routines in includs/auth.php. Otherwise replicate the logic for the specfied user.
|
2022-11-02 13:25:44 -04:00 |
Isaac Connor
|
16b5551a4a
|
Always return a Group_Permission in Permission()
|
2022-11-02 13:25:44 -04:00 |
Isaac Connor
|
121e864dde
|
Continue roughing in Group_Permission logic
|
2022-11-02 13:25:44 -04:00 |
Isaac Connor
|
a891b528d1
|
Use Monitor::canView in Event::canView
|
2022-11-02 13:25:44 -04:00 |
Isaac Connor
|
6265a1ca41
|
Move from MonitorIds to Monitor_Permissions and Group_Permissions.
|
2022-11-02 13:25:43 -04:00 |
Isaac Connor
|
7ff928dcf8
|
Make the primary index on Groups_Permissions a unique index to ensure that the GroupId/UserId mapping is unique. Add Monitor_Permissions
|
2022-11-02 13:24:26 -04:00 |
Isaac Connor
|
893b86ee96
|
Make the primary index on Monitors_Permissions a unique index to ensure that the MOnitorId/UserId mapping is unique.
|
2022-11-02 13:24:26 -04:00 |
Isaac Connor
|
ef8d999218
|
IN () being false could still result in a true result of used in an OR, so instead of just returning, use an always false sql equivalent
|
2022-11-02 12:38:31 -04:00 |
Isaac Connor
|
7a39433db7
|
update code to use Group_Permission::Permission
|
2022-11-02 12:37:47 -04:00 |
Isaac Connor
|
2ee142813e
|
start to rough in an editable monitor function
|
2022-11-02 12:37:47 -04:00 |
Isaac Connor
|
d8175126fd
|
I renamed the fields to user from newUser, so reflect that in the js validation
|
2022-11-02 12:37:47 -04:00 |
Isaac Connor
|
c6edb8d46a
|
Make Permission column wider to support the Inherit value
|
2022-11-02 12:37:47 -04:00 |
Isaac Connor
|
79f5d77fab
|
Add Permission saving to user view
|
2022-11-02 12:37:47 -04:00 |
Isaac Connor
|
3157510f23
|
Add Permission property
|
2022-11-02 12:37:47 -04:00 |
Isaac Connor
|
9df7283358
|
Rough in the boilerplate for retrieving Permissions on Groups
|
2022-11-02 12:37:46 -04:00 |
Isaac Connor
|
76f804dadd
|
Add Permission enum to Groups_Permissions
|
2022-11-02 12:37:16 -04:00 |
Isaac Connor
|
dd4869fb47
|
Add object for Group_Permission
|
2022-11-02 12:36:42 -04:00 |
Isaac Connor
|
a67f89ff9e
|
We renamed newUser to user in form elements
|
2022-11-02 12:36:42 -04:00 |
Isaac Connor
|
85bb66a3ea
|
Change from newUser[] to user[] in form elements. Add Group permissions
|
2022-11-02 12:36:42 -04:00 |
Isaac Connor
|
a840d65ac4
|
Add styles for groups listing table on user view
|
2022-11-02 12:36:42 -04:00 |
Isaac Connor
|
5734e38f52
|
Add group permission checking to visibleMonitor
|
2022-11-02 12:36:42 -04:00 |
Isaac Connor
|
3775be599e
|
Add Groups_Permissions table
|
2022-11-02 12:36:42 -04:00 |
Isaac Connor
|
bb9152d3f2
|
Update frame view js to use const etc instead of var. Put back EventId and FrameId in stats being links and fix FrameId not being populated. If no stats available disable the stats button and use the title to explain why.
|
2022-11-02 12:36:41 -04:00 |
Isaac Connor
|
d00536915e
|
Move getting time into the scope where it is used
|
2022-11-02 10:07:01 -04:00 |