File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,11 @@ public function store(array $params)
105
105
}
106
106
if (!empty ($ params ['class ' ])) {
107
107
$ class =intval ($ params ['class ' ]);
108
- $ authUser = Auth::user ();
109
- if ($ authUser && $ class >= $ authUser ->class ) {
110
- throw new InsufficientPermissionException ('No permission ' );
108
+ if (!IN_NEXUS ) {
109
+ $ authUser = Auth::user ();
110
+ if ($ authUser && $ class >= $ authUser ->class ) {
111
+ throw new InsufficientPermissionException ('No permission ' );
112
+ }
111
113
}
112
114
} else {
113
115
$ class = User::CLASS_USER ;
Original file line number Diff line number Diff line change 1
1
<?php
2
2
defined ('VERSION_NUMBER ' ) || define ('VERSION_NUMBER ' , '1.8.8 ' );
3
- defined ('RELEASE_DATE ' ) || define ('RELEASE_DATE ' , '2023-09-23 ' );
3
+ defined ('RELEASE_DATE ' ) || define ('RELEASE_DATE ' , '2023-09-25 ' );
4
4
defined ('IN_TRACKER ' ) || define ('IN_TRACKER ' , false );
5
5
defined ('PROJECTNAME ' ) || define ("PROJECTNAME " ,"NexusPHP " );
6
6
defined ('NEXUSPHPURL ' ) || define ("NEXUSPHPURL " ,"https://nexusphp.org " );
You can’t perform that action at this time.
0 commit comments