@@ -140,7 +140,7 @@ public function __construct(\phpbb\config\config $config, \phpbb\request\request
140140 */
141141 public function base ($ album_id = 0 )
142142 {
143- $ this ->gallery_auth ->load_user_premissions ($ this ->user ->data ['user_id ' ]);
143+ $ this ->gallery_auth ->load_user_permissions ($ this ->user ->data ['user_id ' ]);
144144 $ album_backlink = $ album_id === 0 ? $ this ->helper ->route ('phpbbgallery_core_moderate ' ) : $ this ->helper ->route ('phpbbgallery_core_moderate_album ' , array ('album_id ' => $ album_id ));
145145 $ album_loginlink = append_sid ($ this ->root_path . 'ucp. ' . $ this ->php_ext . '?mode=login ' );
146146 if ($ album_id === 0 )
@@ -202,7 +202,7 @@ public function queue_approve($page, $album_id)
202202 $ this ->language ->add_lang (array ('gallery_mcp ' , 'gallery ' ), 'phpbbgallery/core ' );
203203 $ this ->language ->add_lang ('mcp ' );
204204
205- $ this ->gallery_auth ->load_user_premissions ($ this ->user ->data ['user_id ' ]);
205+ $ this ->gallery_auth ->load_user_permissions ($ this ->user ->data ['user_id ' ]);
206206 $ album_backlink = $ album_id === 0 ? $ this ->helper ->route ('phpbbgallery_core_moderate ' ) : $ this ->helper ->route ('phpbbgallery_core_moderate_album ' , array ('album_id ' => $ album_id ));
207207 $ album_loginlink = append_sid ($ this ->root_path . 'ucp. ' . $ this ->php_ext . '?mode=login ' );
208208 if ($ album_id === 0 )
@@ -298,7 +298,7 @@ public function action_log($page, $album_id)
298298 $ this ->language ->add_lang (array ('gallery_mcp ' , 'gallery ' ), 'phpbbgallery/core ' );
299299 $ this ->language ->add_lang ('mcp ' );
300300
301- $ this ->gallery_auth ->load_user_premissions ($ this ->user ->data ['user_id ' ]);
301+ $ this ->gallery_auth ->load_user_permissions ($ this ->user ->data ['user_id ' ]);
302302 $ album_backlink = $ album_id === 0 ? $ this ->helper ->route ('phpbbgallery_core_moderate ' ) : $ this ->helper ->route ('phpbbgallery_core_moderate_album ' , array ('album_id ' => $ album_id ));
303303 $ album_loginlink = append_sid ($ this ->root_path . 'ucp. ' . $ this ->php_ext . '?mode=login ' );
304304 if ($ album_id === 0 )
@@ -370,7 +370,7 @@ public function reports($page, $album_id, $status)
370370 confirm_box (false , $ this ->language ->lang ('REPORTS_A_CLOSE2_CONFIRM ' ), $ s_hidden_fields );
371371 }
372372 }
373- $ this ->gallery_auth ->load_user_premissions ($ this ->user ->data ['user_id ' ]);
373+ $ this ->gallery_auth ->load_user_permissions ($ this ->user ->data ['user_id ' ]);
374374 $ album_backlink = $ album_id === 0 ? $ this ->helper ->route ('phpbbgallery_core_moderate ' ) : $ this ->helper ->route ('phpbbgallery_core_moderate_album ' , array ('album_id ' => $ album_id ));
375375 $ album_loginlink = append_sid ($ this ->root_path . 'ucp. ' . $ this ->php_ext . '?mode=login ' );
376376 if ($ album_id === 0 )
@@ -504,7 +504,7 @@ public function album_overview($album_id, $page)
504504 }
505505 }
506506 }
507- $ this ->gallery_auth ->load_user_premissions ($ this ->user ->data ['user_id ' ]);
507+ $ this ->gallery_auth ->load_user_permissions ($ this ->user ->data ['user_id ' ]);
508508 $ album_backlink = $ album_id === 0 ? $ this ->helper ->route ('phpbbgallery_core_moderate ' ) : $ this ->helper ->route ('phpbbgallery_core_moderate_album ' , array ('album_id ' => $ album_id ));
509509 $ album_loginlink = append_sid ($ this ->root_path . 'ucp. ' . $ this ->php_ext . '?mode=login ' );
510510 if ($ album_id === 0 )
@@ -619,7 +619,7 @@ public function image($image_id)
619619 $ this ->user_loader ->load_users (array_keys ($ users_array ));
620620 // Now let's get some ACL
621621 $ select_select = '<option value="" selected="selected"> ' . $ this ->language ->lang ('CHOOSE_ACTION ' ) . '</option> ' ;
622- $ this ->gallery_auth ->load_user_premissions ($ this ->user ->data ['user_id ' ]);
622+ $ this ->gallery_auth ->load_user_permissions ($ this ->user ->data ['user_id ' ]);
623623 if ($ this ->gallery_auth ->acl_check ('m_status ' , $ album_data ['album_id ' ], $ album_data ['album_user_id ' ]))
624624 {
625625 if ($ image_data ['image_status ' ] == 0 )
@@ -701,7 +701,7 @@ public function approve($image_id)
701701 $ image_backlink = $ this ->helper ->route ('phpbbgallery_core_image ' , array ('image_id ' => $ image_id ));
702702 $ album_loginlink = append_sid ($ this ->root_path . 'ucp. ' . $ this ->php_ext . '?mode=login ' );
703703 $ meta_refresh_time = 2 ;
704- $ this ->gallery_auth ->load_user_premissions ($ this ->user ->data ['user_id ' ]);
704+ $ this ->gallery_auth ->load_user_permissions ($ this ->user ->data ['user_id ' ]);
705705 if (!$ this ->gallery_auth ->acl_check ('m_status ' , $ image_data ['image_album_id ' ], $ album_data ['album_user_id ' ]))
706706 {
707707 $ this ->misc ->not_authorised ($ album_backlink , $ album_loginlink , 'LOGIN_EXPLAIN_UPLOAD ' );
@@ -768,7 +768,7 @@ public function unapprove($image_id)
768768 $ image_backlink = $ this ->helper ->route ('phpbbgallery_core_image ' , array ('image_id ' => $ image_id ));
769769 $ album_loginlink = append_sid ($ this ->root_path . 'ucp. ' . $ this ->php_ext . '?mode=login ' );
770770 $ meta_refresh_time = 2 ;
771- $ this ->gallery_auth ->load_user_premissions ($ this ->user ->data ['user_id ' ]);
771+ $ this ->gallery_auth ->load_user_permissions ($ this ->user ->data ['user_id ' ]);
772772 if (!$ this ->gallery_auth ->acl_check ('m_status ' , $ image_data ['image_album_id ' ], $ album_data ['album_user_id ' ]))
773773 {
774774 $ this ->misc ->not_authorised ($ album_backlink , $ album_loginlink , 'LOGIN_EXPLAIN_UPLOAD ' );
@@ -810,7 +810,7 @@ public function move($image_id): \Symfony\Component\HttpFoundation\Response
810810 $ album_loginlink = append_sid ($ this ->root_path . 'ucp. ' . $ this ->php_ext . '?mode=login ' );
811811 $ meta_refresh_time = 2 ;
812812 $ this ->language ->add_lang (array ('gallery_mcp ' , 'gallery ' ), 'phpbbgallery/core ' );
813- $ this ->gallery_auth ->load_user_premissions ($ this ->user ->data ['user_id ' ]);
813+ $ this ->gallery_auth ->load_user_permissions ($ this ->user ->data ['user_id ' ]);
814814 if (!$ this ->gallery_auth ->acl_check ('m_move ' , $ image_data ['image_album_id ' ], $ album_data ['album_user_id ' ]))
815815 {
816816 $ this ->misc ->not_authorised ($ album_backlink , $ album_loginlink , 'LOGIN_EXPLAIN_UPLOAD ' );
@@ -858,7 +858,7 @@ public function lock($image_id)
858858 $ album_loginlink = append_sid ($ this ->root_path . 'ucp. ' . $ this ->php_ext . '?mode=login ' );
859859 $ meta_refresh_time = 2 ;
860860 $ this ->language ->add_lang (array ('gallery_mcp ' , 'gallery ' ), 'phpbbgallery/core ' );
861- $ this ->gallery_auth ->load_user_premissions ($ this ->user ->data ['user_id ' ]);
861+ $ this ->gallery_auth ->load_user_permissions ($ this ->user ->data ['user_id ' ]);
862862 if (!$ this ->gallery_auth ->acl_check ('m_status ' , $ image_data ['image_album_id ' ], $ album_data ['album_user_id ' ]))
863863 {
864864 $ this ->misc ->not_authorised ($ album_backlink , $ album_loginlink , 'LOGIN_EXPLAIN_UPLOAD ' );
0 commit comments