function gg_enterprise_user_scope_sql(array $enterprise, string $alias = 't'): array { $teacherId = (int)($enterprise['teacher_id'] ?? 0); $isAdmin = ($enterprise['role'] ?? '') === 'admin'; if ($isAdmin) { return ['where' => '1=1', 'params' => []]; } // Enterprise semi-admin can only see: // 1. their own account // 2. accounts they personally created through enterprise_dashboard.php return [ 'where' => "({$alias}.teacher_id = ? OR {$alias}.enterprise_owner_id = ?)", 'params' => [$teacherId, $teacherId], ]; } Create Account | Gabay Guro
Gabay Guro logo

Gabay Guro

Tulong sa Guro, Gabay sa Learner

Create your teacher account

Register once with your Division and School Name so Gabay Guro can organize usage, generated materials, and learner support tracking properly.

Teacher Identity
ID
Login Recovery
@
For tracking
D
For tracking
S
4–40 characters
U
Minimum 8

Use at least 8 characters. Mix letters, numbers, and symbols for stronger protection.

Match
Lesson Planning Online Exam Adaptive LMS